Browse Source

sshot: fix run_spectacle being broken due to new buggy behaviour in spectacle

master
Alison Watson 1 year ago
parent
commit
4599dd3319
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      sshot/sharenix

+ 5
- 5
sshot/sharenix View File

@@ -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

Loading…
Cancel
Save