Fix error message (#893)

$ bash <(curl -s -S -L https://git.io/install-gam)
ERROR: GAM currently requires MacOS 10.10 or newer. You are running MacOS 13.10. Please upgrade.
This commit is contained in:
Ross Scroggs
2019-04-16 07:13:23 -07:00
committed by Jay Lee
parent ebe29d3a5a
commit f8f492efb2

View File

@@ -91,7 +91,7 @@ case $gamos in
[Mm]ac[Oo][sS]|[Dd]arwin)
osver=$(sw_vers -productVersion | awk -F'.' '{print $2}')
if (( $osver < 13 )); then
echo_red "ERROR: GAM currently requires MacOS 10.10 or newer. You are running MacOS 13.$osver. Please upgrade."
echo_red "ERROR: GAM currently requires MacOS 10.13 or newer. You are running MacOS 10.$osver. Please upgrade."
exit
else
echo_green "Good, you're running MacOS 10.$osver..."