From: Silvio Rhatto Date: Sat, 27 Nov 2010 19:34:59 +0000 (-0200) Subject: Checking for base at 'drupal make' X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=1282d25bd2ee86e3c07957b22db3e6d9d0820c88;p=puppet-drupal.git Checking for base at 'drupal make' --- diff --git a/templates/drupal.sh.erb b/templates/drupal.sh.erb index b1412ed..bf6cc65 100644 --- a/templates/drupal.sh.erb +++ b/templates/drupal.sh.erb @@ -164,6 +164,10 @@ function drupal_make { makefile="/usr/local/share/drupal/drupal$series.make" if [ -e "$makefile" ]; then + if [ ! -e "$base" ]; then + echo "Please deploy drupal code at $base first" + exit 1 + fi drush dl drush_make ( cd $base && drush make -y --no-core $makefile ) else