From 19a54f348409340e62e7512b00aae540f5e3ca01 Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Mon, 9 Oct 2023 11:50:41 +0300 Subject: [PATCH] fixup --- vault/run.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vault/run.sh b/vault/run.sh index 5ea9b2b..00a8855 100644 --- a/vault/run.sh +++ b/vault/run.sh @@ -54,7 +54,7 @@ if ! command -v jq >/dev/null; then fi # Decode the JSON string to a temporary file -echo "$SECRETS" | jq '.' > temp.json +echo "${SECRETS}" | jq '.' > temp.json # Iterate through the keys and values in the JSON file for key in $(jq -r 'keys[]' temp.json); do @@ -66,7 +66,7 @@ for key in $(jq -r 'keys[]' temp.json); do # Convert the list of environment variables to an array IFS=', ' read -r -a sceret_array <<< "$sceret_names" # Set the environment variables with the secret values - for secret_name in "${sceret_array[@]}"; do + for secret_name in "$${sceret_array[@]}"; do # Remove quotes from the variable name secret_name=$(echo $secret_name | tr -d \") # Assuming the secrets are stored in a key named 'data' in Vault