From 5ea57ef574f6bb5d58e43241c48649d80a3307f3 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Thu, 14 Aug 2025 13:00:49 +0200 Subject: [PATCH] Escape exports --- .templates/00-global_var.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.templates/00-global_var.sh b/.templates/00-global_var.sh index cd0f9d45d..a4310e907 100755 --- a/.templates/00-global_var.sh +++ b/.templates/00-global_var.sh @@ -53,7 +53,7 @@ for KEYS in "${arr[@]}"; do # Sanitize variable VALUE=$(sanitize_variable "$VALUE") # Continue for single values - line="${KEYS}=${VALUE}" + line="${KEYS}='${VALUE//\'/\'\\\'\'}'" # Check if secret if [[ "${line}" == *"!secret "* ]]; then echo "secret detected"