From: Oleg Broytman Date: Sun, 1 May 2022 20:49:14 +0000 (+0300) Subject: Fix(bin): Fix `KillAll`: `return` -> `exit` X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=b3605bbf85e2a649a9c3d571e93c5fa5e71ec522;p=dotfiles.git Fix(bin): Fix `KillAll`: `return` -> `exit` The script was not fully ported from a shell function. --- 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