Skip to content

Commit 52ee0a2

Browse files
committed
assures the variables are set to empty for optional
1 parent 113c243 commit 52ee0a2

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

scripts/replace-variables.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,6 @@ done
138138

139139
# Substitute optional variables only when they have a non-empty value
140140
for varname in $optional_list; do
141-
# Skip empty or unset optional vars (leave placeholder intact)
142-
if [[ -z "${!varname+x}" || -z "${!varname}" ]]; then
143-
continue
144-
fi
145141
value="${!varname}"
146142
if [[ "$ADD_QUOTES" == "true" ]]; then
147143
output=$(echo "$output" | sed 's|{{'"$varname"'}}|'"\"$value\""'|g')

0 commit comments

Comments
 (0)