Add check for notify-send before erroring out

master
Volkor 11 months ago
parent b37e08ad91
commit 597420b1cf
Signed by: Volkor
GPG Key ID: BAD7CA8A81CC2DA5

@ -126,6 +126,7 @@ upload_finished() {
fi
if [ "$notification" = "true" ] ; then
type notify-send >/dev/null 2>&1 || { echo -e >&2 "${r}Warning:${nc} Notifications are enabled but notify-send is not installed - giving up!"; exit 1; }
notify-send "File uploaded." "URL: ${url}" & exit 0
fi
exit 0

Loading…
Cancel
Save