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 $*
local instance="$2"
local pipe
local line
+ shift 2
if [ "$method" == "" ]; then
pipe="--pipe"
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
}