Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
joecorall committed May 21, 2024
1 parent 8e0329b commit 4026b93
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions test/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@

set -eou pipefail

terraform output -json > output.json
cat output.json
KEYS=$(jq -r '.urls.value | keys[]' output.json)
echo "$KEYS"
terraform output -json | jq .urls.value > output.json
KEYS=$(jq -r 'keys[]' output.json)
for KEY in $KEYS; do
URL=$(jq -r ".urls.value[\"$KEY\"]" output.json)
URL=$(jq -r ".[\"$KEY\"]" output.json)
echo "Testing $KEY at $URL"

if [ "$KEY" == "crayfits" ]; then
Expand Down

0 comments on commit 4026b93

Please sign in to comment.