From: Silvio Rhatto Date: Mon, 19 Dec 2011 17:55:53 +0000 (-0200) Subject: Fixing invocation checking X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=ac8d265f49b0c8e994963bdb9e62487a9ed40099;p=puppet-wordpress.git Fixing invocation checking --- diff --git a/templates/wordpress.sh.erb b/templates/wordpress.sh.erb index 60a15e9..cb1f08e 100644 --- a/templates/wordpress.sh.erb +++ b/templates/wordpress.sh.erb @@ -28,7 +28,7 @@ function wordpress_check_existing { # Deploy a fresh wordpress tree function wordpress_deploy { - if [ "$#" != "1" ]; then + if [ -z "$1" ]; then echo "Usage: `basename $0` deploy [folder]" exit 1 fi @@ -48,7 +48,7 @@ function wordpress_deploy { # Upgrade a wordpress instance using upstream source. function wordpress_upgrade { - if [ "$#" != "2" ]; then + if [ -z "2" ]; then echo "Usage: `basename $0` upgrade [folder]" exit 1 fi