Remove _temporary_ files

Instead of removing a file when it _isn't_ temporary, remove it when it
_is_. Leave existing files alone.
This commit is contained in:
Tom Willemse 2014-08-16 16:01:27 +02:00
parent 7f649a3094
commit 07d5ddf22c

2
hypo
View file

@ -54,7 +54,7 @@ function cmd_send
curl --upload-file "$sendfile" "$URL/" curl --upload-file "$sendfile" "$URL/"
if [[ -t 0 ]]; then if [[ ! -t 0 ]]; then
rm "$sendfile" rm "$sendfile"
fi fi
} }