diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2011-12-19 15:55:53 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2011-12-19 15:55:53 -0200 |
commit | ac8d265f49b0c8e994963bdb9e62487a9ed40099 (patch) | |
tree | 1352b7e92f1fa93541da81cf2007a1810ce314b0 /templates | |
parent | 34ce4a513dc9f6db315bbe71f6a66230abb0273e (diff) | |
download | puppet-wordpress-ac8d265f49b0c8e994963bdb9e62487a9ed40099.tar.gz puppet-wordpress-ac8d265f49b0c8e994963bdb9e62487a9ed40099.tar.bz2 |
Fixing invocation checking
Diffstat (limited to 'templates')
-rw-r--r-- | templates/wordpress.sh.erb | 4 |
1 files changed, 2 insertions, 2 deletions
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 <version> [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 <old_version> <new_version> [folder]" exit 1 fi |