Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Allow passing PHPLIB as an environment variable #45

Merged
merged 1 commit into from Jun 1, 2012
Jump to file or symbol
Failed to load files and symbols.
+5 −3
Split
View
@@ -51,10 +51,12 @@ fi
# symlink proper library wrapper into bin
-echo "Which PHP library to use, pecl/gearman or PEAR::Net_Gearman?"
-select PHPLIB in "pecl" "pear"; do
+if [ -z "${PHPLIB}" ]; then
+ echo "Which PHP library to use, pecl/gearman or PEAR::Net_Gearman?"
+ select PHPLIB in "pecl" "pear"; do
break
-done
+ done
+fi
# create and populate installation folder
mkdir -p ${INSTALL_DIR}