From 7fe232d8e15ca72d03848451ae0cd6be71d62df1 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 15 Nov 2012 13:20:57 -0200 Subject: Using confirm instead of pipe --- templates/drupal.sh.erb | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/templates/drupal.sh.erb b/templates/drupal.sh.erb index 046c58c..04bce65 100644 --- a/templates/drupal.sh.erb +++ b/templates/drupal.sh.erb @@ -84,7 +84,8 @@ function drupal_iterate { fi if [ "$1" == "update" ] || [ "$1" == "cron-update" ]; then - drupal_update $1 $drupal + shift + drupal_update $1 $drupal $* else drush -l $drupal $* fi @@ -106,12 +107,12 @@ function drupal_iterate { function drupal_update { local method="$1" local instance="$2" - local pipe + local confirm local line shift 2 if [ "$method" == "cron-update" ]; then - pipe="--pipe" + confirm="-y" fi # See https://drupal.org/node/823146#comment-3319070 @@ -122,7 +123,7 @@ function drupal_update { if [ "$code" == "drupal" ]; then echo "Core update available: $line" else - drush -l $instance up -y -u 1 $pipe $* $code + drush -l $instance up -u 1 $confirm $* $code fi done } -- cgit v1.2.3