Created
December 7, 2013 18:08
-
-
Save cowboy-cod3r/7846357 to your computer and use it in GitHub Desktop.
Bash: Root User?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [[ $EUID -ne 0 ]]; then | |
echo "ERROR: The user must be root in order to execute this script." | |
exit 1 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment