Skip to content

Commit

Permalink
Expand unbound env var to empty in read-secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
culka committed Mar 7, 2024
1 parent a6140fb commit a19d55d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker/read-secrets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ for SECRET_FILENAME in $(ls "$SECRET_STORE_BASE_PATH");
do
# replace non-alphanumeric characters with _ and convert to uppercase
VAR_NAME=$(echo $SECRET_FILENAME | sed -E 's/[^a-zA-Z0-9]+/_/g' | tr a-z A-Z)
if [ ! -z "$SKIP_SET_VARIABLE_SECRET_OVERRIDE" ] && [ ! -z "$(printenv $VAR_NAME)" ]; then
if [ ! -z "${SKIP_SET_VARIABLE_SECRET_OVERRIDE-}" ] && [ ! -z "$(printenv $VAR_NAME)" ]; then
echo "Secret environment value override disabled. Used existing value for '$VAR_NAME' environment variable."
else
VAR_VALUE=$(cat "$SECRET_STORE_BASE_PATH/$SECRET_FILENAME")
Expand Down

0 comments on commit a19d55d

Please sign in to comment.