Skip to content

Instantly share code, notes, and snippets.

@bitkevin
Created July 23, 2013 09:18
Show Gist options
  • Save bitkevin/6061099 to your computer and use it in GitHub Desktop.
Save bitkevin/6061099 to your computer and use it in GitHub Desktop.
#check for root user TODO: replace this with a call to "id"
if [ `whoami` != "root" ] ; then
echo "You must run this script as root. Sorry!"
exit 1
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment