Skip to content

Commit

Permalink
Fix fallback whoami root check logic
Browse files Browse the repository at this point in the history
  • Loading branch information
osm0sis committed Oct 3, 2024
1 parent 08e3fb4 commit ebdbccd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion module/autopif.sh
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
2 changes: 1 addition & 1 deletion module/killgms.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ebdbccd

Please sign in to comment.