Compare commits

..

No commits in common. "c425f90b0fab6cc73da7c16b74bf65eea4d3a3b5" and "3b82d5b0e307dec2375c4df5c4149cbcf86246a4" have entirely different histories.

View file

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
VALID_ARGS=$(getopt -o s: --long subject: -- "$@") VALID_ARGS=$(getopt -o s --long subject -- "$@")
# shellcheck disable=SC2181 # shellcheck disable=SC2181
if [[ ${?} -ne 0 ]]; then if [[ ${?} -ne 0 ]]; then
exit 1; exit 1;
@ -28,8 +28,9 @@ done
if [[ -z ${subject} ]]; then if [[ -z ${subject} ]]; then
usage usage
fi fi
fi
id=$(/root/tasks/announce.sh --get | xmlstarlet sel -t -i '//subject="'"${subject}"'"' -m "/ocs/data/element/id" -v .) id=$(/root/tasks/announce.sh --get | xmlstarlet sel -t -i '//subject="'${subject}'"' -m "/ocs/data/element/id" -v .)
if [[ -n ${id} ]]; then if [[ -n ${id} ]]; then
/root/tasks/announce.sh --delete --id "${id}" /root/tasks/announce.sh --delete --id "${id}"
fi fi