Projet

Général

Profil

Révision 8550e097

Ajouté par Julien Enselme il y a plus de 9 ans

Command subsitution are not quoted. Quotes posed problems in loop.

Voir les différences:

bin/d7-all-reset-variables.sh
2 2

  
3 3
. /home/assos/bin/scripts-config.sh
4 4

  
5
for dir in "$(find "${d7_dir_sites}" -maxdepth 1 -mindepth 1 -type d ! -name all | sort)" ; do
5
for dir in $(find "${d7_dir_sites}" -maxdepth 1 -mindepth 1 -type d ! -name all | sort); do
6 6
    echo "${dir}"
7
    site_name="$(echo "${dir}" | tr '.' '\n' | tail -n 1)"
7
    site_name=$(echo "${dir}" | tr '.' '\n' | tail -n 1)
8 8
    d7-reset-variables.sh "${site_name}"
9 9
done

Formats disponibles : Unified diff