From e2f9b2f634b001888ab8df404f3048087ac0932a Mon Sep 17 00:00:00 2001 From: squidbear <379651+czarly@users.noreply.github.com> Date: Tue, 1 Apr 2025 12:56:44 +0200 Subject: [PATCH] fix --- upstreams.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/upstreams.sh b/upstreams.sh index 348f4717..a8b64d4c 100755 --- a/upstreams.sh +++ b/upstreams.sh @@ -95,7 +95,7 @@ for part in "${parts[@]}"; do # Run envsubst to replace environment variables in the input file and save the result to the output file if yaml2json < "$BASEPATH/$part" | jq -e '.["x-upstreams"]' >/dev/null 2>&1; then #echo "upstreams key exists in $part" - upstreams+=("$(yaml2json < "$BASEPATH/$part" | jq '.["x-upstreams"]' | json2yaml | sed 's/^/ /' | envsubst)") + upstreams+=("$(yaml2json < "$BASEPATH/$part" | jq '.["x-upstreams"]' | json2yaml | sed 's/^/ /'| sed 's/\$\${/${/g' | envsubst)") else #echo "upstreams config $input_file for $part" upstreams+=("$(envsubst < "$input_file")")