Skip to content

Instantly share code, notes, and snippets.

@krypted
Created May 7, 2016 22:02
Show Gist options
  • Save krypted/d8bcb25c703672d4c3b69cd7df256268 to your computer and use it in GitHub Desktop.
Save krypted/d8bcb25c703672d4c3b69cd7df256268 to your computer and use it in GitHub Desktop.
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