Skip to content

Instantly share code, notes, and snippets.

@thejhh
Created May 15, 2013 08:19
Show Gist options
  • Select an option

  • Save thejhh/5582417 to your computer and use it in GitHub Desktop.

Select an option

Save thejhh/5582417 to your computer and use it in GitHub Desktop.
if [ "$(id -u)" != "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