Révision 3dadc395
Ajouté par Thomas Berger il y a plus de 9 ans
bin/d7-reset-piwik-variables.sh | ||
---|---|---|
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 -q default ; then
|
|
89 | 89 |
piwik_id=101 |
90 | 90 |
fi |
91 | 91 |
|
bin/d7-reset-variables.sh | ||
---|---|---|
7 | 7 |
if [ -n "$1" ] ; then |
8 | 8 |
. scripts-config-site.sh "$1" |
9 | 9 |
# default is an exception to the rule |
10 |
if echo "$1" | grep default > /dev/null ; then
|
|
10 |
if echo "$1" | grep -q default ; then
|
|
11 | 11 |
cd "${d7_dir_sites}/default" |
12 | 12 |
else |
13 | 13 |
cd "${d7_site_dir}" |
Formats disponibles : Unified diff
Silence grep tests with -q