Move root user check forward

Root user check is now moved from the installation function to main. The new
location is after parsing the label but before printing the log for blocking
process and notify settings.  This prevents a downloading an application
that can't be installed.
Resolves issue #88
This commit is contained in:
Sam Ess
2021-10-16 16:42:56 -04:00
parent dfd9ab1071
commit cbb1e08e26

View File

@@ -5,6 +5,10 @@
;;
esac
# MARK: check for root
if [ "$(whoami)" != "root" ]; then
# not running as root
cleanupAndExit 6 "not running as root, exiting"
# MARK: application download and installation starts here