Skip to content

Commit

Permalink
Updated install script to use a better method for detecting the user.
Browse files Browse the repository at this point in the history
  • Loading branch information
davelopez01 committed Nov 26, 2013
1 parent ad84fed commit f9f89f1
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,7 @@ fi
#####################
# Add user to group #
#####################
if [ $USER == "root" ]; then
user=$SUDO_USER
else
user=$USER
fi
user=`logname`

in_group=$FALSE
for g in `id -nG $user`; do
Expand Down

0 comments on commit f9f89f1

Please sign in to comment.