Skip to content

Instantly share code, notes, and snippets.

@cowboy-cod3r
Created December 7, 2013 18:08
Show Gist options
  • Save cowboy-cod3r/7846357 to your computer and use it in GitHub Desktop.
Save cowboy-cod3r/7846357 to your computer and use it in GitHub Desktop.
Bash: Root User?
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