diff --git a/lgsm/functions/check_root.sh b/lgsm/functions/check_root.sh index bed8f0c9e..d7a0eb100 100644 --- a/lgsm/functions/check_root.sh +++ b/lgsm/functions/check_root.sh @@ -9,5 +9,5 @@ if [ $(whoami) = "root" ]; then if [ -d "${scriptlogdir}" ]; then fn_scriptlog_fatal "${selfname} attempted to run as root." fi - exit 1 + core_exit.sh fi