From 1cca9e4b72b106374f203890b266f18609deefe3 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Fri, 22 Nov 2019 02:14:25 +0530 Subject: shellcheck fixes --- plugins/splitjoin | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/splitjoin') 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" -- cgit v1.2.3-70-g09d2