summaryrefslogtreecommitdiff
path: root/.scripts/sscp
diff options
context:
space:
mode:
Diffstat (limited to '.scripts/sscp')
-rwxr-xr-x.scripts/sscp3
1 files changed, 2 insertions, 1 deletions
diff --git a/.scripts/sscp b/.scripts/sscp
index e6760be..2cc85f3 100755
--- a/.scripts/sscp
+++ b/.scripts/sscp
@@ -2,4 +2,5 @@
latestss=$(ls -t $HOME/pix/Screenshots/ | head -n10 | dmenu -l 10)
-xclip -selection clipboard -t image/png -i $HOME/pix/Screenshots/$latestss
+[ -z $latestss ] && echo "Nothing selected...quitting" && exit \
+|| xclip -selection clipboard -t image/png -i $HOME/pix/Screenshots/$latestss