summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-12-19 15:55:53 -0200
committerSilvio Rhatto <rhatto@riseup.net>2011-12-19 15:55:53 -0200
commitac8d265f49b0c8e994963bdb9e62487a9ed40099 (patch)
tree1352b7e92f1fa93541da81cf2007a1810ce314b0 /templates
parent34ce4a513dc9f6db315bbe71f6a66230abb0273e (diff)
downloadpuppet-wordpress-ac8d265f49b0c8e994963bdb9e62487a9ed40099.tar.gz
puppet-wordpress-ac8d265f49b0c8e994963bdb9e62487a9ed40099.tar.bz2
Fixing invocation checking
Diffstat (limited to 'templates')
-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