fix: stop possible from-file, type module collision in template
This commit is contained in:
parent
d663b7574b
commit
dfb315447c
1 changed files with 1 additions and 2 deletions
|
|
@ -9,8 +9,7 @@
|
||||||
{%- else %}
|
{%- else %}
|
||||||
RUN chmod +x /tmp/modules/{{ type }}/{{ type }}.sh && source /tmp/exports.sh && /tmp/modules/{{ type }}/{{ type }}.sh '{{ self::print_module_context(module) }}'
|
RUN chmod +x /tmp/modules/{{ type }}/{{ type }}.sh && source /tmp/exports.sh && /tmp/modules/{{ type }}/{{ type }}.sh '{{ self::print_module_context(module) }}'
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
{%- endif %}
|
{%- else if let Some(from_file) = module.from_file %}
|
||||||
{%- if let Some(from_file) = module.from_file %}
|
|
||||||
{{ self::get_module_from_file(from_file).render().unwrap() }}
|
{{ self::get_module_from_file(from_file).render().unwrap() }}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue