Skip to content

Prevent variable substitution with # nosubst will delete the annotated line

Describe the bug

Since breaking change 4023f7f8 the option # nosubst in function tbc_envsubst is not working as documented any more.

Expected behavior

Variable substitution can be prevented by appending # nosubst at the end of any line. So the line will not be changed.

Actual behavior

Since Version 7 all lines with an appended # nosubst are deleted after tbc_envsubst function.

Logs and/or screenshots

example.yml: example file as input for both test cases

testcase Version <7 test_old.sh generated_old.yml

testcase Version >=7 test_new.sh generated_new.yml

Context & Configuration

Sorry no public link available

The issue was reproduced using:

  • Version of the template: 7.3.0