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:
parent
7f649a3094
commit
07d5ddf22c
1 changed files with 1 additions and 1 deletions
2
hypo
2
hypo
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue