From 1282d25bd2ee86e3c07957b22db3e6d9d0820c88 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 27 Nov 2010 17:34:59 -0200 Subject: Checking for base at 'drupal make' --- templates/drupal.sh.erb | 4 ++++ 1 file changed, 4 insertions(+) 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 -- cgit v1.2.3