From d2bb4b1881d45e42f9aca0e08aeb601dca0f02d5 Mon Sep 17 00:00:00 2001 From: typebrook Date: Fri, 8 May 2020 22:31:49 +0800 Subject: Remove temporary file after user create a gist --- gist | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gist b/gist index 510deba..ab4be9f 100755 --- a/gist +++ b/gist @@ -654,8 +654,8 @@ _new_file() { echo > /dev/tty [[ -z $1 ]] && read -e -r -p 'Type file name: ' filename < /dev/tty - mv "$tmp_file" /tmp/"$filename" - echo /tmp/"$filename" + mv "$tmp_file" $tmp_dir/"$filename" + echo $tmp_dir/"$filename" } # Parse JSON object of a single gist -- cgit v1.2.3-70-g09d2