aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-05-25 19:51:59 -0300
committerSilvio Rhatto <rhatto@riseup.net>2011-05-25 19:51:59 -0300
commit5042a5a35ccfaef712724d86b5b767d0aecef6ed (patch)
tree1d683d514b86710aa7bd071ddc57f727c2268a0b
parentbcf22b73405b7062d61f8024247311f03a8713bd (diff)
downloadpuppet-drupal-5042a5a35ccfaef712724d86b5b767d0aecef6ed.tar.gz
puppet-drupal-5042a5a35ccfaef712724d86b5b767d0aecef6ed.tar.bz2
Fixing drupal_deploy
-rw-r--r--templates/drupal.sh.erb4
1 files changed, 2 insertions, 2 deletions
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 <version>"
+ if [ -z "$1" ]; then
+ echo "Usage: `basename $0` deploy <version> [--upgrade]"
exit 1
fi