Created
October 10, 2018 22:22
-
-
Save b13bs/ff0eef5b79b630e95a2b491e1c407ffd to your computer and use it in GitHub Desktop.
run as root header in bash script
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
if [ "$EUID" -ne 0 ] | |
then echo "[-] Should be run as root!" | |
exit | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment