From e1cd9db36c52138a276f609f73b1cb009787044f Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 15 Nov 2012 11:52:30 -0200 Subject: Minor fixes --- templates/drupal.sh.erb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'templates/drupal.sh.erb') diff --git a/templates/drupal.sh.erb b/templates/drupal.sh.erb index ffe1aee..a48c655 100644 --- a/templates/drupal.sh.erb +++ b/templates/drupal.sh.erb @@ -83,7 +83,7 @@ function drupal_iterate { echo "Processing $drupal..." fi - if [ "$1" == "update" && "$1" == "cron-update" ]; then + if [ "$1" == "update" ] && [ "$1" == "cron-update" ]; then drupal_update $1 $drupal else drush -l $drupal $* @@ -108,6 +108,7 @@ function drupal_update { local instance="$2" local pipe local line + shift 2 if [ "$method" == "" ]; then pipe="--pipe" @@ -121,7 +122,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 -y -u 1 $pipe $* $code fi done } -- cgit v1.2.3