# 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