Projet

Général

Profil

Paste
Télécharger (379 octets) Statistiques
| Branche: | Révision:

root / bin / d7-all-drush.sh @ 1900469e

1 d52a5b2f jenselme
#!/bin/sh
2
3 15ed27d8 Julien Enselme
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 06e9d071 Assos Assos
. /home/assos/bin/scripts-config.sh
13 d52a5b2f jenselme
. scripts-utils.sh
14
15
16 3e9236bd Julien Enselme
check_arguments "$#" 1 "${help}"
17 d52a5b2f jenselme
18 8550e097 Julien Enselme
for dir in $(find "${d7_dir_sites}" -maxdepth 1 -mindepth 1 -type d ! -name all | sort) ; do
19 3e9236bd Julien Enselme
    cd "${dir}"
20
    echo "${dir}"
21 e852c150 Julien Enselme
    drush "$@"
22 5d7bc31a Benjamin Luce
    sleep 5
23 d52a5b2f jenselme
done