From f8164e79e74a592742ceb94b23aa7cfdfc845798 Mon Sep 17 00:00:00 2001 From: Pierre Smeyers <pierre.smeyers@gmail.com> Date: Fri, 11 Apr 2025 18:13:32 +0200 Subject: [PATCH] fix(envsubst): leave lines with '# nosubst' unchanged when substituting (used to be simply dropped) Fixes #50 --- templates/gitlab-ci-k8s.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/templates/gitlab-ci-k8s.yml b/templates/gitlab-ci-k8s.yml index 65809dc..c60c911 100644 --- a/templates/gitlab-ci-k8s.yml +++ b/templates/gitlab-ci-k8s.yml @@ -449,7 +449,11 @@ stages: } return enc } - !/# *nosubst/ { + /# *nosubst/ { + print $0 + next + } + { orig_line = $0 line = $0 count_repl_in_line = 0 -- GitLab