File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -19,13 +19,17 @@ forcecompile=off
19
19
alldone=no
20
20
checkRoot=on
21
21
XDEBUG=" off"
22
+ alternateurl=on
22
23
23
24
INSTALL_DIRECTORY=" ./"
24
25
25
26
IGNORE_CERT=" yes"
26
27
27
- while getopts " rxucid :v:" opt; do
28
+ while getopts " arxucid :v:" opt; do
28
29
case $opt in
30
+ a)
31
+ alternateurl=on
32
+ ;;
29
33
r)
30
34
checkRoot=off
31
35
;;
@@ -117,6 +121,10 @@ API_VERSION=$(echo "$VERSION_DATA" | grep api_version | cut -d ':' -f2- | tr -d
117
121
VERSION_DATE=$( echo " $VERSION_DATA " | grep ' "date"' | cut -d ' :' -f2- | tr -d ' ",' )
118
122
VERSION_DOWNLOAD=$( echo " $VERSION_DATA " | grep ' "download_url"' | cut -d ' :' -f2- | tr -d ' ",' )
119
123
124
+ if [ " $alternateurl " == " on" ]; then
125
+ VERSION_DOWNLOAD=$( echo " $VERSION_DATA " | grep ' "alternate_download_url"' | cut -d ' :' -f2- | tr -d ' ",' )
126
+ fi
127
+
120
128
if [ " $( uname -s) " == " Darwin" ]; then
121
129
BASE_VERSION=$( echo " $VERSION " | sed -E ' s/([A-Za-z0-9_\.]*).*/\1/' )
122
130
VERSION_DATE_STRING=$( date -j -f " %s" $VERSION_DATE )
You can’t perform that action at this time.
0 commit comments