Révision f7b1ec4f
Ajouté par Assos Assos il y a plus de 10 ans
bin/d7-all-drush.sh | ||
---|---|---|
7 | 7 |
|
8 | 8 |
check_arguments $# 1 "$help" |
9 | 9 |
|
10 |
#Store the drush command name (sqlq, vget, cron). This is the first argument. |
|
11 |
drush_command_name="$1" |
|
12 |
#shift will remove the fist argument so that $* will have the second, third...arguments. |
|
13 |
shift |
|
10 | 14 |
for dir in $(find $d7_dir_sites -maxdepth 1 -mindepth 1 -type d ! -name all | sort) ; do |
11 | 15 |
cd $dir |
12 | 16 |
echo $dir |
13 |
drush $*
|
|
17 |
drush $drush_command_name """$*"""
|
|
14 | 18 |
done |
Formats disponibles : Unified diff
Prevent double quotes interpretation for drush command arguments. See #378.