Skip to content

Loading…

Allow passing PHPLIB as an environment variable #45

Merged
merged 1 commit into from

2 participants

@bfeaver

Bypassing the prompt allows for easier automated installs.

@brianlmoon brianlmoon merged commit abb0f91 into brianlmoon:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jun 1, 2012
  1. Allow passing pecl or pear parameter as env variable.

    Brian Feaver committed
Showing with 5 additions and 3 deletions.
  1. +5 −3 install/install.sh
View
8 install/install.sh
@@ -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}
Something went wrong with that request. Please try again.