From 4ad6661c5f97262b6f9b4924171b6ecf2d370f0c Mon Sep 17 00:00:00 2001 From: Crony Akatsuki Date: Fri, 22 Jul 2022 18:25:25 +0200 Subject: [PATCH] Exit when no file selected. --- dmenu-share | 1 + 1 file changed, 1 insertion(+) 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"