Created
July 20, 2020 03:17
-
-
Save NanoDano/6bc9443c627ed64417247ff3310b8b42 to your computer and use it in GitHub Desktop.
Require script to be run by root user
This file contains hidden or 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
#!/usr/bin/bash | |
if [[ $EUID -ne 0 ]]; then | |
echo "This script needs escalated privs. Exiting" | |
exit 1 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment