Révision 683f57f9
Ajouté par Julien Enselme il y a plus de 10 ans
bin/d7-all-drush-logged.sh | ||
---|---|---|
9 | 9 |
|
10 | 10 |
cd $d7_dir_sites |
11 | 11 |
|
12 |
for dir in `find . -maxdepth 1 -mindepth 1 -type d ! -name all | sort` ; do
|
|
12 |
for dir in $(find . -maxdepth 1 -mindepth 1 -type d ! -name all | sort) ; do
|
|
13 | 13 |
cd $dir |
14 |
current_date=`date "+%Y-%m-%d_%Hh:%Mm"`
|
|
14 |
current_date=$(date "+%Y-%m-%d_%Hh:%Mm")
|
|
15 | 15 |
echo "======$current_date======" >> $d7_dir_log/$dir.log |
16 | 16 |
echo "Arguments are: $* " >> $d7_dir_log/$dir.log |
17 | 17 |
drush $* >> $d7_dir_log/$dir.log |
Formats disponibles : Unified diff
Uniformisation: from
cmd
to $(cmd).