1 |
d52a5b2f
|
jenselme
|
#!/bin/sh
|
2 |
|
|
|
3 |
06e9d071
|
Assos Assos
|
. /home/assos/bin/scripts-config.sh
|
4 |
d52a5b2f
|
jenselme
|
. scripts-utils.sh
|
5 |
|
|
|
6 |
|
|
help="# ARGS: drush_command"
|
7 |
|
|
|
8 |
|
|
check_arguments $# 1 "$help"
|
9 |
|
|
|
10 |
f7b1ec4f
|
Assos Assos
|
#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
|
14 |
683f57f9
|
Julien Enselme
|
for dir in $(find $d7_dir_sites -maxdepth 1 -mindepth 1 -type d ! -name all | sort) ; do
|
15 |
d52a5b2f
|
jenselme
|
cd $dir
|
16 |
|
|
echo $dir
|
17 |
f7b1ec4f
|
Assos Assos
|
drush $drush_command_name """$*"""
|
18 |
d52a5b2f
|
jenselme
|
done |