added macOS version check

This commit is contained in:
Armin Briegel
2020-07-14 16:42:40 +02:00
parent d0fc403323
commit 127866750e

View File

@@ -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"