Skip to content

Commit

Permalink
Fix auto-confirmed install
Browse files Browse the repository at this point in the history
  • Loading branch information
helhum committed Jul 1, 2012
1 parent b38383f commit 896d4dd
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions install-helper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,17 @@ function addModuleToPhpConfig() {
}

function installPhpModule() {
if [[ "$1" == "-y" ]]
then
CONFIRM="printf \"no\n\" |"
shift
fi

if [[ "$1" == "redis" ]]
then
installRedis
else
$DEBUG $CONFIRM pecl install $1
fi
case "$1" in
-y)
$DEBUG printf "no\n" | pecl install $2
;;
redis)
installRedis
;;
*)
$DEBUG pecl install $1
;;
esac

addModuleToPhpConfig $1

Expand Down

0 comments on commit 896d4dd

Please sign in to comment.