Skip to content

Commit 6d74f6f

Browse files
committed
Update macOS version checks to support macOS 11
1 parent 88c549c commit 6d74f6f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

purge-nvda.sh

+4-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# purge-nvda.sh
44
# Author(s): Mayank Kumar (mayankk2308, github.com / mac_editor, egpu.io)
55
# License: Specified in LICENSE.md.
6-
# Version: 3.0.6
6+
# Version: 3.0.7
77

88
# ----- COMMAND LINE ARGS
99

@@ -27,7 +27,7 @@ BIN_CALL=0
2727
SCRIPT_FILE=""
2828

2929
# Script version
30-
SCRIPT_MAJOR_VER="3" && SCRIPT_MINOR_VER="0" && SCRIPT_PATCH_VER="6"
30+
SCRIPT_MAJOR_VER="3" && SCRIPT_MINOR_VER="0" && SCRIPT_PATCH_VER="7"
3131
SCRIPT_VER="${SCRIPT_MAJOR_VER}.${SCRIPT_MINOR_VER}.${SCRIPT_PATCH_VER}"
3232

3333
# User input
@@ -147,9 +147,10 @@ check_sip() {
147147

148148
# macOS Version check
149149
check_macos_version() {
150+
MACOS_LEAP_VER="$(echo -e "${MACOS_VER}" | cut -d '.' -f1)"
150151
MACOS_MAJOR_VER="$(echo -e "${MACOS_VER}" | cut -d '.' -f2)"
151152
MACOS_MINOR_VER="$(echo -e "${MACOS_VER}" | cut -d '.' -f3)"
152-
[[ ("${MACOS_MAJOR_VER}" < 13) || ("${MACOS_MAJOR_VER}" == 13 && "${MACOS_MINOR_VER}" < 4) ]] && echo -e "\n${BOLD}macOS 10.13.4 or later${NORMAL} required.\n" && exit $MACOS_VER_ERR
153+
[[ ${MACOS_LEAP_VER} == "10" && ("${MACOS_MAJOR_VER}" < 13) || ("${MACOS_MAJOR_VER}" == 13 && "${MACOS_MINOR_VER}" < 4) ]] && echo -e "\n${BOLD}macOS 10.13.4 or later${NORMAL} required.\n" && exit $MACOS_VER_ERR
153154
}
154155

155156
# Check patch status

0 commit comments

Comments
 (0)