u
This commit is contained in:
@@ -25,7 +25,6 @@ this_file=curae.sh
|
||||
|
||||
|
||||
# https://stackoverflow.com/questions/18215973/how-to-check-if-running-as-root-in-a-bash-script
|
||||
#if [ "$EUID" -ne 0 ]
|
||||
if [ $(id -u) -ne 0 ]
|
||||
then echo "error: run as 'root'"
|
||||
exit
|
||||
|
||||
Reference in New Issue
Block a user