aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbspswallow2
1 files changed, 1 insertions, 1 deletions
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
}