root / bin / d7-all-drush.sh @ 5a4b9049
1 |
#!/bin/sh |
---|---|
2 |
|
3 |
|
4 |
help='d7-all-drush.sh drush_arguments' |
5 |
|
6 |
usage() { |
7 |
echo "${help}" |
8 |
} |
9 |
. /home/assos/bin/print-help-if-required.sh |
10 |
|
11 |
|
12 |
. /home/assos/bin/scripts-config.sh |
13 |
. scripts-utils.sh |
14 |
|
15 |
|
16 |
check_arguments "$#" 1 "${help}" |
17 |
|
18 |
for dir in $(find "${d7_dir_sites}" -maxdepth 1 -mindepth 1 -type d ! -name all | sort) ; do |
19 |
cd "${dir}" |
20 |
echo "${dir}" |
21 |
drush "$@" |
22 |
sleep 5 |
23 |
done |