Skip to content

Commit

Permalink
Update install.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
jagerzhang authored Apr 10, 2018
1 parent cf2629a commit e10d6a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ get_char()

Check_U()
{
userid=$(id | awk '{print $1}' | sed -e 's/=/ /' -e 's/(/ /' -e 's/)/ /'|awk '{print $2}')
userid=$(id | awk -F "[=|(]" '{print $2}')
if [[ $userid -ne 0 ]]
then
echo "No root permissions,Please run with root user..."
Expand Down

0 comments on commit e10d6a1

Please sign in to comment.