aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJopStro <[email protected]>2021-02-02 11:33:04 +0000
committerJopStro <[email protected]>2021-02-02 11:33:04 +0000
commit149d722639644d2c2f24e1b301189c7b28b72148 (patch)
tree5f828abfc320d2f857bc2254ab60b1ae83a9cd68
parente777d168519b10a3e19e9207c51a0b2de37dc739 (diff)
Fix test command in check_swallowing_process
-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
}