aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/pskill
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-11-22 02:14:25 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-11-22 11:13:34 +0530
commit1cca9e4b72b106374f203890b266f18609deefe3 (patch)
tree9f281f4b4de296c54d13dc9c7e214f58835636a7 /plugins/pskill
parentee2dcb1de7d3e82b330f49ee9fb5dfd4608207ff (diff)
downloadnnn-1cca9e4b72b106374f203890b266f18609deefe3.tar.gz
shellcheck fixes
Diffstat (limited to 'plugins/pskill')
-rwxr-xr-xplugins/pskill5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/pskill b/plugins/pskill
index dcec180..d02c9fa 100755
--- a/plugins/pskill
+++ b/plugins/pskill
@@ -20,10 +20,11 @@ else
sucmd=: # noop
fi
-echo -n "Enter process name ['defunct' for zombies]: "
-read psname
+printf "Enter process name ['defunct' for zombies]: "
+read -r psname
if ! [ -z "$psname" ]; then
+ # shellcheck disable=SC2009
cmd="$(ps -ax | grep -iw "$psname" | fzy | sed -e 's/^[ \t]*//' | cut -d' ' -f1)"
$sucmd kill -9 "$cmd"
fi