]> gitweb.fluxo.info Git - puppet-drupal.git/commitdiff
Fixing drupal_deploy
authorSilvio Rhatto <rhatto@riseup.net>
Wed, 25 May 2011 22:51:59 +0000 (19:51 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Wed, 25 May 2011 22:51:59 +0000 (19:51 -0300)
templates/drupal.sh.erb

index 1a069f3804799a73c9e96587d581cdcad737e8f7..77c4b53ce7027b4f3a2b0ce07edf8386832bc34a 100644 (file)
@@ -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