diff options
author | Tom Willemse | 2014-08-16 16:01:27 +0200 |
---|---|---|
committer | Tom Willemse | 2014-08-16 16:01:27 +0200 |
commit | 07d5ddf22c1cd62fa6e13736de5891490b83c385 (patch) | |
tree | 0206701c0d5b48b11c903421e4a0c3cb073f32a7 | |
parent | 7f649a30941424f6f7ec3ad76bd87d291c02629b (diff) | |
download | hypo-cli-07d5ddf22c1cd62fa6e13736de5891490b83c385.tar.gz hypo-cli-07d5ddf22c1cd62fa6e13736de5891490b83c385.zip |
Instead of removing a file when it _isn't_ temporary, remove it when it
_is_. Leave existing files alone.
-rwxr-xr-x | hypo | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -54,7 +54,7 @@ function cmd_send curl --upload-file "$sendfile" "$URL/" - if [[ -t 0 ]]; then + if [[ ! -t 0 ]]; then rm "$sendfile" fi } |