diff options
-rw-r--r-- | templates/drupal.sh.erb | 5 |
1 files changed, 3 insertions, 2 deletions
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 } |