mirror of
https://github.com/kurbezz/discord-bot.git
synced 2025-12-06 15:15:37 +01:00
Fix
This commit is contained in:
@@ -6,7 +6,8 @@ response=`curl -X 'GET' "https://$VAULT_HOST/v1/$VAULT_SECRET_PATH" -s \
|
|||||||
|
|
||||||
data=`echo $response | jq -r '.data.data'`
|
data=`echo $response | jq -r '.data.data'`
|
||||||
|
|
||||||
for key in $(echo "$data" | jq -r 'keys[]'); do
|
echo "$data" | jq -r 'to_entries[] | "\(.key)=\(.value)"' | while IFS= read -r line; do
|
||||||
value=$(echo "$data" | jq -r ".\"$key\"") # Corrected syntax
|
key=$(echo "$line" | cut -d '=' -f 1)
|
||||||
echo "$key"="$value"
|
value=$(echo "$line" | cut -d '=' -f 2-)
|
||||||
|
echo "$key=$value"
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user