Skip to content

Commit 10b446e

Browse files
committed
fix(libtofs): “files_switch” mess up the variable exported by “map.jinja” [skip ci]
* Checked using myii/ssf-formula#131
1 parent cfe834d commit 10b446e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: nginx/libtofs.jinja

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
'<tplroot>:tofs:files_switch' this is the ordered list of grains to
1717
use as selector switch of the directories under
1818
"<path_prefix>/files"
19-
* indent_witdh: indentation of the result value to conform to YAML
19+
* indent_width: indentation of the result value to conform to YAML
2020
* use_subpath: defaults to `False` but if set, lookup the source file
2121
recursively from the current state directory up to `tplroot`
2222
@@ -82,7 +82,7 @@
8282
) %}
8383
{#- Append an empty value to evaluate as `default` in the loop below #}
8484
{%- if '' not in fsl %}
85-
{%- do fsl.append('') %}
85+
{%- set fsl = fsl + [''] %}
8686
{%- endif %}
8787
{%- for fs in fsl %}
8888
{%- for src_file in src_files %}

0 commit comments

Comments
 (0)