From: Silvio Rhatto Date: Wed, 25 May 2011 22:51:59 +0000 (-0300) Subject: Fixing drupal_deploy X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=5042a5a35ccfaef712724d86b5b767d0aecef6ed;p=puppet-drupal.git Fixing drupal_deploy --- diff --git a/templates/drupal.sh.erb b/templates/drupal.sh.erb index 1a069f3..77c4b53 100644 --- a/templates/drupal.sh.erb +++ b/templates/drupal.sh.erb @@ -54,8 +54,8 @@ function drupal_iterate { # Deploy a fresh drupal tree function drupal_deploy { - if [ "$#" != "1" ]; then - echo "Usage: `basename $0` deploy " + if [ -z "$1" ]; then + echo "Usage: `basename $0` deploy [--upgrade]" exit 1 fi