aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2014-08-16 16:01:27 +0200
committerGravatar Tom Willemse2014-08-16 16:01:27 +0200
commit07d5ddf22c1cd62fa6e13736de5891490b83c385 (patch)
tree0206701c0d5b48b11c903421e4a0c3cb073f32a7
parent7f649a30941424f6f7ec3ad76bd87d291c02629b (diff)
downloadhypo-cli-07d5ddf22c1cd62fa6e13736de5891490b83c385.tar.gz
hypo-cli-07d5ddf22c1cd62fa6e13736de5891490b83c385.zip
Remove _temporary_ filesHEADmaster
Instead of removing a file when it _isn't_ temporary, remove it when it _is_. Leave existing files alone.
-rwxr-xr-xhypo2
1 files changed, 1 insertions, 1 deletions
diff --git a/hypo b/hypo
index 85bcf49..77c6d17 100755
--- a/hypo
+++ b/hypo
@@ -54,7 +54,7 @@ function cmd_send
curl --upload-file "$sendfile" "$URL/"
- if [[ -t 0 ]]; then
+ if [[ ! -t 0 ]]; then
rm "$sendfile"
fi
}