diff options
-rw-r--r-- | templates/drupal.sh.erb | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/templates/drupal.sh.erb b/templates/drupal.sh.erb index 87253c2..77bc472 100644 --- a/templates/drupal.sh.erb +++ b/templates/drupal.sh.erb @@ -64,12 +64,14 @@ function drupal_iterate { # Issue updates for drupal in $drupals; do - # Ignore symlinks so sites are updated just once - if [ ! -h "$drupal" ] || [ ! -h "`readlink $drupal`" ]; then - if [ "$1" != "cron" ]; then - echo "Processing $drupal..." + if [ -e "$drupal/settings.php" ]; then + # Ignore symlinks so sites are updated just once + if [ ! -h "$drupal" ] || [ ! -h "`readlink $drupal`" ]; then + if [ "$1" != "cron" ]; then + echo "Processing $drupal..." + fi + drush -l $drupal $* fi - drush -l $drupal $* fi done |