Escape exports

This commit is contained in:
Alexandre
2025-08-14 13:00:49 +02:00
committed by GitHub
parent aa62669623
commit 5ea57ef574

View File

@@ -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"