diff --git a/scripts/termux-notification b/scripts/termux-notification old mode 100644 new mode 100755 index 6ad3358..fff6708 --- a/scripts/termux-notification +++ b/scripts/termux-notification @@ -114,6 +114,12 @@ done if [ $# != 0 ]; then echo "$SCRIPTNAME: too many arguments"; exit 1; fi +if [ "$OPT_ONGOING" == true ] && [ -z "$OPT_ID" ]; then + echo "Ongoing notifications without an ID are not removable." + echo "Please set an id with --id \"string\"." + exit 1 +fi + set -- if [ -n "$OPT_ACTION" ]; then set -- "$@" --es action "$OPT_ACTION"; fi if [ -n "$OPT_ALERT_ONCE" ]; then set -- "$@" --ez alert-once "$OPT_ALERT_ONCE"; fi