From b3605bbf85e2a649a9c3d571e93c5fa5e71ec522 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sun, 1 May 2022 23:49:14 +0300 Subject: [PATCH] Fix(bin): Fix `KillAll`: `return` -> `exit` The script was not fully ported from a shell function. --- bin/KillAll | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/KillAll b/bin/KillAll index 92dbf74..63ae4dc 100755 --- a/bin/KillAll +++ b/bin/KillAll @@ -3,8 +3,9 @@ # A kind of pkill/killall if [ -z "$1" -o -n "$3" ]; then echo "Usage: KillAll [-signal] proc_regexp" >&2 - return 1 + exit 1 fi + if [ -z "$2" ]; then kill `pidOf "$1"` else -- 2.39.5