sshot: fix run_spectacle being broken due to new buggy behaviour in spectacle
parent
445bce3c68
commit
4599dd3319
|
@ -5,18 +5,18 @@ function notify
|
||||||
end
|
end
|
||||||
|
|
||||||
function run_spectacle
|
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..."
|
notify -u low -c transfer "Uploading..."
|
||||||
if sharenix -s Greyserv "$f"
|
if sharenix -s Greyserv "$f"
|
||||||
notify -u low -c transfer.complete "Upload completed"
|
notify -u low -c transfer.complete "Upload completed"
|
||||||
else
|
else
|
||||||
notify -u normal -c transfer.error "Upload failed"
|
notify -u normal -c transfer.error "Upload failed"
|
||||||
end
|
end
|
||||||
|
rm "$f"
|
||||||
end
|
end
|
||||||
|
|
||||||
rm "$f"
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue