From 149d722639644d2c2f24e1b301189c7b28b72148 Mon Sep 17 00:00:00 2001 From: JopStro Date: Tue, 2 Feb 2021 11:33:04 +0000 Subject: Fix test command in check_swallowing_process --- bspswallow | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bspswallow b/bspswallow index 59fb84d..3d98596 100755 --- a/bspswallow +++ b/bspswallow @@ -21,7 +21,7 @@ get_ppid() { } check_swallowing_process() { - [ -n $(get_pid $1) ] || return 0 + [ -z $(get_pid $1) ] && return 0 [ "$(get_ppid "$(get_ppid "$(get_pid "$1")")")" = "$(get_pid "$2")" ] && return 0 || return 1 } -- cgit v1.2.3