]> gitweb.fluxo.info Git - puppet-drupal.git/commitdiff
Minor fixes
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 15 Nov 2012 13:52:30 +0000 (11:52 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 15 Nov 2012 13:52:30 +0000 (11:52 -0200)
templates/drupal.sh.erb

index ffe1aeef254259e30b89d07963d1df4183e8c3b9..a48c655971b5be532c569372f1ab90c84659ccb2 100644 (file)
@@ -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
 }