Skip to content

Commit 8479886

Browse files
committed
Better way to check user permission
1 parent 0529b1c commit 8479886

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

install.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ fi
1616

1717

1818
# Checking Permissions
19-
Permission=$(id -u)
20-
if [ $Permission -ne 0 ]
19+
if [[ $EUID -ne 0 ]]
2120
then
2221
echo -e "\033[31mSudo Privilege Required...\e[0m"
2322
echo -e "\033[31mUses:\e[0m\033[34m curl -sL rt.cx/ee | sudo bash\e[0m"

0 commit comments

Comments
 (0)