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