diff --git a/dmenu-share b/dmenu-share index 0ce33ea..9e1fc8c 100755 --- a/dmenu-share +++ b/dmenu-share @@ -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"