From ee256722d11d5acdd57d7e399b2b43d2c0686f1b Mon Sep 17 00:00:00 2001 From: alexia Date: Wed, 18 Jan 2023 13:50:37 +0100 Subject: [PATCH] fix `_kill_if_running` for root processes (#321) `-f` means match full command line, so it never matched for iproxy, causing errors when trying to kill the root process as normal user --- palera1n.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/palera1n.sh b/palera1n.sh index f0378a6..31a2c17 100755 --- a/palera1n.sh +++ b/palera1n.sh @@ -283,7 +283,7 @@ _dfuhelper() { } _kill_if_running() { - if (pgrep -u root -xf "$1" &> /dev/null > /dev/null); then + if (pgrep -u root -x "$1" &> /dev/null > /dev/null); then # yes, it's running as root. kill it sudo killall $1 else