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:
alexia authored and GitHub committed 2023-01-18 07:50:37 -05:00
1 parent 49ce775f36
commit ee256722d1
1 file changed
+1 -1
+1 -1
View File
@@ -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