Fixed printlog issue

This commit is contained in:
Sam Ess
2021-10-16 19:17:06 -04:00
parent c85a7a1fba
commit d402f46c3c
2 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -6,7 +6,7 @@
esac
# MARK: check for root
if [ "$(whoami)" != "root" || "$DEBUG" -eq 2 ]; then
if [[ "$(whoami)" != "root" && "$DEBUG" -ne 2 ]]; then
# not running as root
cleanupAndExit 6 "not running as root, exiting"
fi