From 38d0f0846d2573b59e6c3b5ca7822d8fea1d1d9b Mon Sep 17 00:00:00 2001 From: shmibs Date: Sun, 19 Jul 2015 13:04:31 -0700 Subject: fix send --- .config/sxiv/exec/key-handler | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to '.config/sxiv/exec/key-handler') diff --git a/.config/sxiv/exec/key-handler b/.config/sxiv/exec/key-handler index 11160af..b388078 100755 --- a/.config/sxiv/exec/key-handler +++ b/.config/sxiv/exec/key-handler @@ -15,9 +15,10 @@ do gimp "$file" & ;; "s") scp "$file" shmibbles.me:http/tmp/ - if [ $? -ne 0 ]; then + if [[ $? -ne 0 ]]; then notify-send "uploading $(basename $file) to /tmp/ failed" else + ssh shmibbles.me "chmod o+r 'http/tmp/$file'" name=$(echo "http://shmibbles.me/tmp/$(basename $file)" | sed 's/ /%20/g') echo "$name" | tr -d '\n' | xclip -i -selection clipboard echo "$name" | tr -d '\n' | xclip -i -selection primary -- cgit v1.2.3