fi
if [ "$1" == "update" ] || [ "$1" == "cron-update" ]; then
- drupal_update $1 $drupal
+ shift
+ drupal_update $1 $drupal $*
else
drush -l $drupal $*
fi
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
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
}