Révision 6c6343d9
Ajouté par Julien Enselme il y a environ 9 ans
bin/d7-reset-variables.sh | ||
---|---|---|
9 | 9 |
|
10 | 10 |
if [ -n "$1" ] ; then |
11 | 11 |
param="$1" . /home/assos/bin/scripts-config-site.sh |
12 |
# default is an exception to the rule |
|
13 |
# find returns the name of the as the absolute path, hence the use of grep |
|
14 |
# and not = |
|
15 |
if echo "$1" | grep -q default ; then |
|
12 |
if [ "$1" = 'default' ] ; then |
|
16 | 13 |
cd "${d7_dir_sites}/default" |
17 | 14 |
else |
18 | 15 |
cd "${d7_site_dir}" |
Formats disponibles : Unified diff
Improve the detection of default with the path of a site.
Use a utilitary function to extract the exact site name from a site path.
Close #572