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-reset-piwik-variables.sh
15 15

  
16 16
##### Specific
17 17
# Note: you can read the piwik site id from the url in piwik
18
case $1 in
18
case "$1" in
19 19
    accueil)
20 20
	piwik_id=286
21 21
	;;
......
76 76
    tvp)
77 77
	piwik_id=110
78 78
	;;
79
	ftorregrosa)
80
    piwik_id=314
81
    ;;
79
    ftorregrosa)
80
	piwik_id=314
81
	;;
82 82
    *)
83 83
	piwik_id=287
84 84
	;;
85 85
esac
86 86

  
87 87
# Default is an exception and cannot be treated in the case
88
if echo $1 | grep default ; then
88
if echo "$1" | grep default ; then
89 89
    piwik_id=101
90 90
fi
91 91

  
92
drush -yq vset piwik_site_id $piwik_id
92
drush -yq vset piwik_site_id "${piwik_id}"

Formats disponibles : Unified diff