diff options
author | Saumit Dinesan <justsaumit@protonmail.com> | 2022-08-24 17:50:34 +0530 |
---|---|---|
committer | Saumit Dinesan <justsaumit@protonmail.com> | 2022-08-24 17:50:34 +0530 |
commit | e532c0c89b6fc69ab99d2c9a739d13d5a9570b3f (patch) | |
tree | 0562b486cb46f032e2313c01da08cf4d461b852c /.scripts/pidkill | |
parent | 30357221e6de38d63ea359692a8d3cfba3d14bd7 (diff) |
fix in if statement using bashism- var requires double quotes
Diffstat (limited to '.scripts/pidkill')
-rwxr-xr-x | .scripts/pidkill | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.scripts/pidkill b/.scripts/pidkill index b44dd84..f64d624 100755 --- a/.scripts/pidkill +++ b/.scripts/pidkill @@ -5,5 +5,5 @@ pid=$(echo $prok | awk '{print $1}') pname=$(echo $prok | awk '{print $4}') kill -15 $pid 2>/dev/null && -[ -n $pname ] && dunstify "Terminated process Successfully" "$pname was killed" -i skull +[ -n "$pname" ] && dunstify "Terminated process Successfully" "$pname was killed" -i skull |