Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
Allow install from any user except root
Browse files Browse the repository at this point in the history
  • Loading branch information
fechy committed Oct 18, 2016
1 parent 21589cf commit 3283ba5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ INIT_SCRIPT="retropie-web-gui.sh"
# Checks if we are running this script with the right user
function is_right_user {
USR="$(whoami)";
if [ "$USR" != 'pi' ];
if [ "$USR" -eq 'root' ];
then
echo "Please run this command from the PI user";
echo "Please don't run this command as root";
exit 0;
fi
}
Expand Down

0 comments on commit 3283ba5

Please sign in to comment.