mirror of
https://github.com/palera1n/palera1n.git
synced 2026-10-21 09:47:01 +02:00
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
This commit is contained in:
1 parent
49ce775f36
commit
ee256722d1
1 file changed
+1
-1
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user