mirror of
https://github.com/mtan93/Installomator.git
synced 2026-03-08 05:31:53 +00:00
added macOS version check
This commit is contained in:
@@ -166,6 +166,14 @@ downloadURLFromGit() { # $1 git user name, $2 git repo name
|
||||
|
||||
printlog "################## Start Installomator"
|
||||
|
||||
# check minimal macOS requirement
|
||||
autoload is-at-least
|
||||
|
||||
if ! is-at-least 10.14 $(sw_vers -productVersion); then
|
||||
printlog "Installomator requires at least macOS 10.14 Mojave."
|
||||
exit 98
|
||||
fi
|
||||
|
||||
# get the label
|
||||
if [[ $# -eq 0 ]]; then
|
||||
printlog "no label provided"
|
||||
|
||||
Reference in New Issue
Block a user