From 4599dd331977a4af707e874a4c567133367e0128 Mon Sep 17 00:00:00 2001 From: Alison Watson Date: Mon, 31 Aug 2020 18:45:21 -0600 Subject: [PATCH] sshot: fix run_spectacle being broken due to new buggy behaviour in spectacle --- sshot/sharenix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sshot/sharenix b/sshot/sharenix index 9fac2e1..ad371a3 100755 --- a/sshot/sharenix +++ b/sshot/sharenix @@ -5,18 +5,18 @@ function notify end function run_spectacle - set f "$HOME/Pictures/"(date "+%y%m%d-%H%M%S")".png" + set f "/tmp/"(date "+%y%m%d-%H%M%S")".png" - spectacle -b $argv -n -o "$f" + spectacle -b $argv -n - if test -f "$f" + if test -f "/tmp/temp.png" + mv "/tmp/temp.png" "$f" notify -u low -c transfer "Uploading..." if sharenix -s Greyserv "$f" notify -u low -c transfer.complete "Upload completed" else notify -u normal -c transfer.error "Upload failed" end + rm "$f" end - - rm "$f" end