From ac8d265f49b0c8e994963bdb9e62487a9ed40099 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Mon, 19 Dec 2011 15:55:53 -0200 Subject: Fixing invocation checking --- templates/wordpress.sh.erb | 4 ++-- 1 file 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 [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 -- cgit v1.2.3