Exit with an error code if the user isn't root

This commit is contained in:
James Conroy
2022-02-09 19:44:07 -06:00
parent bfcfad2e7d
commit b9b3876069

View File

@@ -295,6 +295,7 @@ is_tty() {
if ! [ "$(id -u)" = 0 ]; then
echo "${0}: This command must be run as root"
exit 1
fi
while getopts ':hq' OPTION; do