mirror of
https://github.com/mtan93/Installomator.git
synced 2026-03-08 05:31:53 +00:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user