I'm using this script to run a command within each subdirectory in the 'sites' directory, EXCLUDING the 'all' subdirectory. However, when I run this, the 'all' subdirectory is still being used, even though I use an if statement to exclude it.
for dir in ~/htdocs/drupal/drupal/sites/*
do
if [ $dir = "/local/users/drupadm/htdocs/drupal/drupal/all" ]
then
continue
fi
echo $dir
(cd $dir && /opt/webstack/php/5.2/bin/php /local/users/drupadm/drush/drush.php $1)
done
Bryan
"$variables"