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"