Exit when no file selected.

This commit is contained in:
Crony Akatsuki 2022-07-22 18:25:25 +02:00
parent 321f370263
commit 4ad6661c5f

View File

@ -1,5 +1,6 @@
#!/bin/sh
file=$(find $HOME -type f | dmenu -l 15)
[ -z "$file" ] && exit
curl -F "file=@$file" 0x0.st | xclip -selection clipboard
notify-send "Dmenu Share" "Ready to share"