diff options
-rwxr-xr-x | gist | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -521,7 +521,7 @@ _new_file() { | |||
521 | [[ -t 0 ]] && echo "Type a gist. <Ctrl-C> to cancel, <Ctrl-D> when done" > /dev/tty | 521 | [[ -t 0 ]] && echo "Type a gist. <Ctrl-C> to cancel, <Ctrl-D> when done" > /dev/tty |
522 | tmp_file=$(mktemp) | 522 | tmp_file=$(mktemp) |
523 | cat > "$tmp_file" | 523 | cat > "$tmp_file" |
524 | echo -e '\n' > /dev/tty | 524 | echo > /dev/tty |
525 | [[ -z $1 ]] && read -r -p 'Type file name: ' filename < /dev/tty | 525 | [[ -z $1 ]] && read -r -p 'Type file name: ' filename < /dev/tty |
526 | mv "$tmp_file" /tmp/"$filename" | 526 | mv "$tmp_file" /tmp/"$filename" |
527 | echo /tmp/"$filename" | 527 | echo /tmp/"$filename" |