Projet

Général

Profil

Révision 3e9236bd

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

Update scritp so they respect the new convention.

  • Variables are quoted.
  • $(…) are quoted.

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

Formats disponibles : Unified diff