You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 5, 2021. It is now read-only.
Copy file name to clipboardExpand all lines: macos/install.sh
+9-4Lines changed: 9 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,8 @@
2
2
3
3
functioncompilePHP {
4
4
# Install All Dependencies
5
-
read -pr 'Which PHP version would you like to install?[latest-7.1/latest-7.2/latest-7.3/latest-7.4/latest-8.0/latest-master] ' PHPINSTALLVERSION
5
+
read -p 'Which PHP version would you like to install?[latest-7.1/latest-7.2/latest-7.3/default: latest-7.4/latest-8.0/latest-master] ' PHPINSTALLVERSION
read -pr 'This a BETA PHP version. This software has been tested, but bugs and errors are bound to appear in this early stage. This should not be used in a production environment. Are you sure you want to install?[y/Y/n/N] ' INSTALLCHOICE
25
+
read -p 'This a BETA PHP version. This software has been tested, but bugs and errors are bound to appear in this early stage. This should not be used in a production environment. Are you sure you want to install?[y/Y/default: n/N] ' INSTALLCHOICE
26
+
INSTALLCHOICE=${INSTALLCHOICE:-n}
27
+
25
28
if [ "$INSTALLCHOICE"= y ] || [ "$INSTALLCHOICE"= Y ];then
26
29
cd ../releases/ ||exit
27
30
unzip php-src-php-8.0.0beta2.zip -d latest-8.0
@@ -34,7 +37,8 @@ function compilePHP {
34
37
exit 1
35
38
fi
36
39
elif [ "$PHPINSTALLVERSION"= latest-master ];then
37
-
read -pr 'CAREFUL: This is a pre-release version and is in heavy development. Install this only if you want the latest bleeding-edge features. These may not have been tested thoroughly and should not be used in a production environment. Are you sure you want to install?[y/Y/n/N] ' INSTALLCHOICE
40
+
read -p 'CAREFUL: This is a pre-release version and is in heavy development. Install this only if you want the latest bleeding-edge features. These may not have been tested thoroughly and should not be used in a production environment. Are you sure you want to install?[y/Y/default: n/N] ' INSTALLCHOICE
41
+
INSTALLCHOICE=${INSTALLCHOICE:-n}
38
42
if [ "$INSTALLCHOICE"= y ] || [ "$INSTALLCHOICE"= Y ];then
39
43
git checkout php-src
40
44
elif [ "$INSTALLCHOICE"= n ] || [ "$INSTALLCHOICE"= N ];then
@@ -108,7 +112,8 @@ function compilePHP {
108
112
fi
109
113
110
114
echo Tested PHP
111
-
read -pr 'The tests have been completed and you may or may not have had failures on some of them. This can sometimes be ignored with the latest builds, or may need extra attention. Would you like to continue with installation?[y/Y/n/N] ' ERRORRESPONSE
115
+
read -p 'The tests have been completed and you may or may not have had failures on some of them. This can sometimes be ignored with the latest builds, or may need extra attention. Would you like to continue with installation?[default: y/Y/n/N] ' ERRORRESPONSE
116
+
ERRORRESPONSE=${ERRORRESPONSE:-y}
112
117
if [ "$ERRORRESPONSE"= y ] || [ "$ERRORRESPONSE"= Y ];then
0 commit comments