aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2018-01-29 10:46:30 -0200
committerSilvio Rhatto <rhatto@riseup.net>2018-01-29 10:46:30 -0200
commitb00a50350ee688d144c75a1f3262b397359d27b6 (patch)
treef9d701457b8167c7df49d69fd7bd65ed4de1cbf6
parentf36cb3d7feb171813d003a9dcd1d322704d0a109 (diff)
downloadpuppet-drupal-b00a50350ee688d144c75a1f3262b397359d27b6.tar.gz
puppet-drupal-b00a50350ee688d144c75a1f3262b397359d27b6.tar.bz2
Fix drupal_upgrade syntax check
-rwxr-xr-xfiles/drupal2
1 files changed, 1 insertions, 1 deletions
diff --git a/files/drupal b/files/drupal
index d51fd10..573158b 100755
--- a/files/drupal
+++ b/files/drupal
@@ -226,7 +226,7 @@ function drupal_download {
# Upgrade a drupal instance using upstream source
function drupal_upgrade {
- if [ "$#" != "1" ]; then
+ if [ "$#" != "1" ] || [ "$#" != "2" ]; then
echo "Usage: `basename $0` upgrade <series|old_version> [new_version]"
exit 1
fi