summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--templates/wordpress.sh.erb4
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