aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
authortypebrook <typebrook@gmail.com>2020-01-22 16:03:49 +0800
committertypebrook <typebrook@gmail.com>2020-01-22 16:03:49 +0800
commitadc7f042d676e4fe13f11d8a621c9f181cf8dffb (patch)
treeb566727e6f0c55744f8e4f727e53426150c6e81d /scripts
parent2842f44cb7da3d65ef0b786c411f9e2e4e60fc5e (diff)
update
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/gist1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/gist b/scripts/gist
index e9b95c0..5786dac 100755
--- a/scripts/gist
+++ b/scripts/gist
@@ -232,6 +232,7 @@ _new_file() {
232 cat > $tmp_file 232 cat > $tmp_file
233 echo -e '\n' > /dev/tty 233 echo -e '\n' > /dev/tty
234 [[ -z "$1" ]] && echo -n 'Type file name: ' > /dev/tty && read filename 234 [[ -z "$1" ]] && echo -n 'Type file name: ' > /dev/tty && read filename
235 # FIXME filename is invalid
235 mv $tmp_file /tmp/$filename 236 mv $tmp_file /tmp/$filename
236 echo /tmp/$filename 237 echo /tmp/$filename
237} 238}