Answers for "Exit bash script if not running as root"

0

Exit bash script if not running as root

[[ $EUID -ne 0 ]] && echo "This script must be run as root." && exit 1
Posted by: Guest on May-28-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language