File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 2
2
3
3
# set-eGPU.sh
4
4
# Author(s): Mayank Kumar (@mac_editor, egpu.io / @mayankk2308, github.com)
5
- # Version: 2.0.6
5
+ # Version: 2.0.7
6
6
7
7
# ----- ENVIRONMENT
8
8
@@ -24,7 +24,7 @@ BIN_CALL=0
24
24
SCRIPT_FILE=" "
25
25
26
26
# Script version
27
- SCRIPT_MAJOR_VER=" 2" && SCRIPT_MINOR_VER=" 0" && SCRIPT_PATCH_VER=" 6 "
27
+ SCRIPT_MAJOR_VER=" 2" && SCRIPT_MINOR_VER=" 0" && SCRIPT_PATCH_VER=" 7 "
28
28
SCRIPT_VER=" ${SCRIPT_MAJOR_VER} .${SCRIPT_MINOR_VER} .${SCRIPT_PATCH_VER} "
29
29
IS_HIGH_SIERRA=0
30
30
PREF_SET_ERROR=0
@@ -165,6 +165,7 @@ check_compatibility() {
165
165
MACOS_LEAP_VER=" $( echo -e " ${MACOS_VER} " | cut -d ' .' -f1) "
166
166
MACOS_MAJOR_VER=" $( echo -e " ${MACOS_VER} " | cut -d ' .' -f2) "
167
167
MACOS_MINOR_VER=" $( echo -e " ${MACOS_VER} " | cut -d ' .' -f3) "
168
+ [[ -z " ${MACOS_MINOR_VER} " ]] && MACOS_MINOR_VER=0
168
169
[[ ${MACOS_LEAP_VER} == " 10" && (( "${MACOS_MAJOR_VER} " < 13 ) || ("${MACOS_MAJOR_VER} " == 13 && "${MACOS_MINOR_VER} " < 4 )) ]] && echo -e " \nOnly ${BOLD} macOS 10.13.4 or later${NORMAL} compatible.\n" && exit
169
170
(( ${MACOS_LEAP_VER} == "10 " && ${MACOS_MAJOR_VER} == "13 " )) && IS_HIGH_SIERRA=1
170
171
}
You can’t perform that action at this time.
0 commit comments