Skip to content

Commit

Permalink
Update vault-backup.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
venkatamutyala authored Jan 18, 2024
1 parent 73fbd94 commit 12433a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vault-backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ BASE_JSON='{
"vault_version": "1.14.8"
}'

FIRST_SECRET_NO_PREFIX=${FIRST_SECRET#"secret/data/}
FIRST_SECRET_NO_PREFIX=${FIRST_SECRET#"secret/data/"}

UPDATED_JSON=$(echo $BASE_JSON | jq --arg path "secret/$FIRST_SECRET_NO_PREFIX" --argjson kv "$KEY_VALUES" '.path_values_map[$path] = $kv')

Expand Down

0 comments on commit 12433a7

Please sign in to comment.