Révision d4c4525a
Ajouté par Julien Enselme il y a environ 9 ans
bin/usage.sh | ||
---|---|---|
41 | 41 |
. /home/assos/bin/scripts-utils.sh |
42 | 42 |
|
43 | 43 |
|
44 |
if [ "${drupal_version}" = d7 ] ; then |
|
45 |
cd "${d7_dir_sites}" |
|
46 |
else |
|
47 |
echo Unrecognize version. |
|
44 |
if [ ! "${drupal_version}" = d7 ] ; then |
|
45 |
echo Unrecognize version. >&2 |
|
46 |
exit 1 |
|
48 | 47 |
fi |
49 | 48 |
|
50 | 49 |
number_found=0 |
51 | 50 |
|
52 |
for dir in $(find . -maxdepth 1 -mindepth 1 -type d ! -name all ! -name languages ! -name images | sort) ; do
|
|
51 |
for site in $(sites_list) ; do
|
|
53 | 52 |
# List projects that correspond to the status. |
54 | 53 |
# Keep project_name if listed. |
55 | 54 |
# Count line result. 0 if not listed or 1 if listed. |
56 | 55 |
# Print site_dir if listed. |
57 | 56 |
|
58 |
cd "${dir}"; |
|
59 |
if [ 1 -le $(drush pml --status="${project_status}" | grep "${project_name}" | wc -l) ] ; then |
|
60 |
echo "${dir}"; |
|
57 |
if [ 1 -le $(drush @"${site}" pml --status="${project_status}" | grep "${project_name}" | wc -l) ] ; then |
|
58 |
echo "${site}"; |
|
61 | 59 |
number_found=$((${number_found} + 1)) |
62 | 60 |
fi |
63 | 61 |
cd - |
Formats disponibles : Unified diff
Use drush aliases to loop on all sites instead of sites.
Close #535