Skip to content
This repository was archived by the owner on May 5, 2021. It is now read-only.

Commit 16ce27c

Browse files
author
Antonios Papadakis
committed
Make Scripts the Same on Both Branches
1 parent 3fdbfe8 commit 16ce27c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

macos/install.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,9 @@ function setup {
162162
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
163163
INSTALLCHOICE=${INSTALLCHOICE:-n}
164164
if [ "$INSTALLCHOICE" = y ] || [ "$INSTALLCHOICE" = Y ]; then
165-
git checkout php-src
165+
cd ../releases/ || exit
166+
git clone https://github.com/php/php-src.git
167+
cd php-src || exit
166168
elif [ "$INSTALLCHOICE" = n ] || [ "$INSTALLCHOICE" = N ]; then
167169
echo cancelling installation
168170
git chekout master
@@ -171,6 +173,9 @@ function setup {
171173
echo invalid argument, exiting...
172174
git checkout master
173175
setup
176+
else
177+
echo invalid argument, exiting...
178+
setup
174179
fi
175180
elif [ "$PHPINSTALLVERSION" = q ] || [ "$PHPINSTALLVERSION" = quit ]; then
176181
echo cancelling installation

0 commit comments

Comments
 (0)