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/splitjoin | |
parent | ee2dcb1de7d3e82b330f49ee9fb5dfd4608207ff (diff) | |
download | nnn-1cca9e4b72b106374f203890b266f18609deefe3.tar.gz |
shellcheck fixes
Diffstat (limited to 'plugins/splitjoin')
-rwxr-xr-x | plugins/splitjoin | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/splitjoin b/plugins/splitjoin index 60a5408..fcd49de 100755 --- a/plugins/splitjoin +++ b/plugins/splitjoin @@ -12,8 +12,8 @@ selection=${XDG_CONFIG_HOME:-$HOME/.config}/nnn/.selection resp=s if [ -s "$selection" ]; then - echo -n "press 's' (split current file) or 'j' (join selection): " - read resp + printf "press 's' (split current file) or 'j' (join selection): " + read -r resp fi if [ "$resp" = "j" ]; then @@ -37,8 +37,8 @@ if [ "$resp" = "j" ]; then elif [ "$resp" = "s" ]; then if [ -n "$1" ] && [ -f "$1" ]; then # a single file is passed - echo -n "split size in MB: " - read size + printf "split size in MB: " + read -r size if [ -n "$size" ]; then split -d -b "$size"M "$1" "$1" |