Skip to content

Instantly share code, notes, and snippets.

@mko-x
Created May 10, 2015 06:09
Show Gist options
  • Save mko-x/306e2bf0baade6b886fa to your computer and use it in GitHub Desktop.
Save mko-x/306e2bf0baade6b886fa to your computer and use it in GitHub Desktop.
shell ensure root
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root" 1>&2
exit 1
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment