mirror of
https://github.com/mtan93/Installomator.git
synced 2026-03-08 05:31:53 +00:00
Moved root check to before case statement
We can have code in the case statement, so no need to run that, if we were supposed to exit.
This commit is contained in:
@@ -5,11 +5,6 @@
|
||||
;;
|
||||
esac
|
||||
|
||||
# MARK: check for root
|
||||
if [[ "$(whoami)" != "root" && "$DEBUG" -ne 2 ]]; then
|
||||
# not running as root
|
||||
cleanupAndExit 6 "not running as root, exiting"
|
||||
fi
|
||||
|
||||
# MARK: application download and installation starts here
|
||||
|
||||
|
||||
Reference in New Issue
Block a user