Permalink
Browse files

Allow passing pecl or pear parameter as env variable.

  • Loading branch information...
1 parent 6529dd4 commit 62dedf225d59e37fd3cb08b0761c8caa89e150c9 Brian Feaver committed Jun 1, 2012
Showing with 5 additions and 3 deletions.
  1. +5 −3 install/install.sh
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}

0 comments on commit 62dedf2

Please sign in to comment.