Created
May 7, 2016 22:02
-
-
Save krypted/d8bcb25c703672d4c3b69cd7df256268 to your computer and use it in GitHub Desktop.
This file contains 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 [[ $USER != "root" ]]; then | |
echo "This script must be run as root" | |
else | |
echo "You are root" | |
exit 1 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment