Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroTochigi committed Jan 20, 2024
1 parent fa61305 commit 6bbd2db
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/aws/dependencies/configOperations.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
function getConfigAsJson(){
local allConfig=$(getTreehousesConfigValue $configName | jq .)
echo "$allConfig"
if [ -z "$configName" ]; then
echo "configName is not set"
return 1
fi
echo "configName: $configName"
local allConfig=$(getTreehousesConfigValue $configName)
if ! echo "$allConfig" | jq . > /dev/null 2>&1; then
echo "getTreehousesConfigValue did not return valid JSON"
return 1
fi
echo "$allConfig"
}

Expand Down

0 comments on commit 6bbd2db

Please sign in to comment.