From 6bbd2db5cba9885b9dda9f164bcf350a520dd50a Mon Sep 17 00:00:00 2001 From: hiroTochigi Date: Fri, 19 Jan 2024 22:06:30 -0600 Subject: [PATCH] debug --- src/aws/dependencies/configOperations.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/aws/dependencies/configOperations.sh b/src/aws/dependencies/configOperations.sh index c160ceac..ed49113e 100644 --- a/src/aws/dependencies/configOperations.sh +++ b/src/aws/dependencies/configOperations.sh @@ -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" }