Projet

Général

Profil

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

root / bin / d7-all-drush.sh @ 6c6343d9

1
#!/bin/sh
2

    
3

    
4
help='d7-all-drush.sh drush_arguments'
5

    
6
usage() {
7
    echo "${help}"
8
}
9

    
10
if [ "$1" = "-h" ] ; then
11
    usage()
12
    exit 0
13
fi
14

    
15

    
16
. /home/assos/bin/scripts-config.sh
17
. /home/assos/bin/scripts-utils.sh
18

    
19

    
20
check_arguments "$#" 1 "${help}"
21

    
22
for dir in $(find "${d7_dir_sites}" -maxdepth 1 -mindepth 1 -type d ! -name all | sort) ; do
23
    cd "${dir}"
24
    echo "${dir}"
25
    drush "$@"
26
    sleep 5
27
done