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

Commit 3d2c99b

Browse files
author
Antonios Papadakis
committed
Fix Typos and Balance ifs and fis
macOS
1 parent 09cb482 commit 3d2c99b

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

macos/install.sh

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -158,33 +158,33 @@ function setup() {
158158
echo invalid argument, exiting...
159159
setup
160160
fi
161-
elif [ "$PHPINSTALLVERSION" = latest-master ]; then
162-
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
163-
INSTALLCHOICE=${INSTALLCHOICE:-n}
164-
if [ "$INSTALLCHOICE" = y ] || [ "$INSTALLCHOICE" = Y ]; then
165-
cd ../releases/ || exit
166-
git clone https://github.com/php/php-src.git
167-
cd php-src || exit
168-
elif [ "$INSTALLCHOICE" = n ] || [ "$INSTALLCHOICE" = N ]; then
169-
echo cancelling installation
170-
git chekout master
171-
setup
172-
else
173-
echo invalid argument, exiting...
174-
git checkout master
175-
setup
176-
fi
177-
elif [ "$PHPINSTALLVERSION" = q ] || [ "$PHPINSTALLVERSION" = quit ]; then
161+
fi
162+
elif [ "$PHPINSTALLVERSION" = latest-master ]; then
163+
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
164+
INSTALLCHOICE=${INSTALLCHOICE:-n}
165+
if [ "$INSTALLCHOICE" = y ] || [ "$INSTALLCHOICE" = Y ]; then
166+
cd ../ || exit
167+
git clone https://github.com/php/php-src.git
168+
cd php-src || exit
169+
elif [ "$INSTALLCHOICE" = n ] || [ "$INSTALLCHOICE" = N ]; then
178170
echo cancelling installation
179-
exit 130
171+
git chekout master
172+
setup
173+
else
174+
echo invalid argument, exiting...
175+
git checkout master
176+
setup
180177
fi
178+
elif [ "$PHPINSTALLVERSION" = q ] || [ "$PHPINSTALLVERSION" = quit ]; then
179+
echo cancelling installation
180+
exit 130
181181
fi
182182

183183
# Install dependencies using Homebrew
184184
echo Installing Dependencies
185185
brew install flex autoconf automake libtool re2c bison openssl curl enchant gd freetype mhash libiconv libsodium libjpeg pcre libxml2 argon2 tidy-html5 libzip
186186
# Export Packages to the $PATH so They can be Found by the System
187-
SHELL=$(echo ${SHELL})
187+
SHELL=$(echo "${SHELL}")
188188
if [ "$SHELL" = /bin/bash ]; then
189189

190190
echo exporting PATH variables, compiler flags, and pkg-config variables for dependencies
@@ -266,7 +266,7 @@ function setup() {
266266
elif [ "$PHPINSTALLVERSION" = latest-8.0 ]; then
267267
cd php-src-php-8.0.0beta2/ || exit
268268
elif [ "$PHPINSTALLVERSION" = latest-master ]; then
269-
cd ..
269+
cd .
270270
fi
271271
}
272272

0 commit comments

Comments
 (0)