#!/bin/bash
# drushUpByDir.sh - https://gist.github.com/pcoughlin/8a0afb2a108241334111d0df7d77ed04
output=_drush_up_`date +%Y%m%d-%H%M%S`
for site in `find . -maxdepth 1 -type d ! -name "_*" ! -name "all" `; do
if [ "$(basename $site)" != "." ]; then
echo '------------------------------------------ ' $(basename $site) | tee -a $output
drush -l $(basename $site) up -y | tee -a $output
echo '------------------------------------------ ' | tee -a $output
echo ' ' | tee -a $output
fi
done