Skip to content

Instantly share code, notes, and snippets.

@zipizap
Created October 11, 2013 14:48
Show Gist options
  • Save zipizap/6935979 to your computer and use it in GitHub Desktop.
Save zipizap/6935979 to your computer and use it in GitHub Desktop.
#exit if user is not root
[ "$(id -u)" != "0" ] && { echo "Must be run as root! Aborting"; exit 1;}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment