dmenuhandler safer exit on non-input

This commit is contained in:
Alexander Bocken 2021-06-25 11:03:00 +02:00
parent 78eb371ddd
commit be941928bc
Signed by: Alexander
GPG Key ID: 1D237BE83F9B05E8

View File

@ -33,7 +33,9 @@ case "$choice" in
"rifle file") curl -L "$1" -o "/tmp/riflefile"
rifle /tmp/riflefile;;
"watch thread") dest="$(dmenuinput 'name of folder:')"
[ -z "$dest" ] && exit
echo "dmenuhandler:$dest"
mkdir -p "$(makepathabsolute "$dest")"
threadwatcher add "$1" "$dest" &
notify-send "dmenuhandler" "Thread watcher started. Download initialized.";;
"rip media") dest="$(dmenuinput 'name of folder:')"