Fix fallback whoami root check logic

This commit is contained in:
Chris Renshaw
2024-10-03 16:46:35 -03:00
committed by osm0sis
parent 08e3fb4d29
commit ebdbccdad2
2 changed files with 2 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
#!/system/bin/sh
if [ "$USER" != "root" -o "$(whoami 2>/dev/null)" != "root" ]; then
if [ "$USER" != "root" -a "$(whoami 2>/dev/null)" != "root" ]; then
echo "autopif: need root permissions";
exit 1;
fi;

View File

@@ -4,7 +4,7 @@
# Kill the Google Play services DroidGuard process
# (com.google.android.gms.unstable)
if [ "$USER" != "root" -o "$(whoami 2>/dev/null)" != "root" ]; then
if [ "$USER" != "root" -a "$(whoami 2>/dev/null)" != "root" ]; then
echo "killgms: need root permissions";
exit 1;
fi;