From 07d5ddf22c1cd62fa6e13736de5891490b83c385 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sat, 16 Aug 2014 16:01:27 +0200 Subject: Remove _temporary_ files Instead of removing a file when it _isn't_ temporary, remove it when it _is_. Leave existing files alone. --- hypo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } -- cgit v1.2.3-54-g00ecf