Created
October 15, 2015 01:10
-
-
Save ianatha/191c0a4087b4b01faf9d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
if [ "$(id -u)" != "0" ]; then | |
# Elevate privileges to root. | |
sudo $0 $* | |
exit $? | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment