dmenuhandler safer exit on non-input
This commit is contained in:
parent
78eb371ddd
commit
be941928bc
@ -33,7 +33,9 @@ case "$choice" in
|
|||||||
"rifle file") curl -L "$1" -o "/tmp/riflefile"
|
"rifle file") curl -L "$1" -o "/tmp/riflefile"
|
||||||
rifle /tmp/riflefile;;
|
rifle /tmp/riflefile;;
|
||||||
"watch thread") dest="$(dmenuinput 'name of folder:')"
|
"watch thread") dest="$(dmenuinput 'name of folder:')"
|
||||||
|
[ -z "$dest" ] && exit
|
||||||
echo "dmenuhandler:$dest"
|
echo "dmenuhandler:$dest"
|
||||||
|
mkdir -p "$(makepathabsolute "$dest")"
|
||||||
threadwatcher add "$1" "$dest" &
|
threadwatcher add "$1" "$dest" &
|
||||||
notify-send "dmenuhandler" "Thread watcher started. Download initialized.";;
|
notify-send "dmenuhandler" "Thread watcher started. Download initialized.";;
|
||||||
"rip media") dest="$(dmenuinput 'name of folder:')"
|
"rip media") dest="$(dmenuinput 'name of folder:')"
|
||||||
|
Loading…
Reference in New Issue
Block a user