diff options
author | Arun Prakash Jana <engineerarun@gmail.com> | 2019-11-22 02:14:25 +0530 |
---|---|---|
committer | Arun Prakash Jana <engineerarun@gmail.com> | 2019-11-22 11:13:34 +0530 |
commit | 1cca9e4b72b106374f203890b266f18609deefe3 (patch) | |
tree | 9f281f4b4de296c54d13dc9c7e214f58835636a7 /plugins/fzhist | |
parent | ee2dcb1de7d3e82b330f49ee9fb5dfd4608207ff (diff) | |
download | nnn-1cca9e4b72b106374f203890b266f18609deefe3.tar.gz |
shellcheck fixes
Diffstat (limited to 'plugins/fzhist')
-rwxr-xr-x | plugins/fzhist | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/plugins/fzhist b/plugins/fzhist index ca1db63..c47efa2 100755 --- a/plugins/fzhist +++ b/plugins/fzhist @@ -18,15 +18,15 @@ fi if ! [ -z "$entry" ]; then tmpfile=$(mktemp) - echo "$entry" >> $tmpfile - $EDITOR $tmpfile + echo "$entry" >> "$tmpfile" + $EDITOR "$tmpfile" - if [ -s $tmpfile ]; then - $SHELL -c "$(cat $tmpfile)" + if [ -s "$tmpfile" ]; then + $SHELL -c "$(cat "$tmpfile")" fi - rm $tmpfile + rm "$tmpfile" - echo -n "Press any key to exit" - read input + printf "Press any key to exit" + read -r _ fi |