From 3ff1cd41ace6959d851a68bef5c9230b7bee11a3 Mon Sep 17 00:00:00 2001 From: james Hart Date: Wed, 24 Jul 2024 15:13:39 +0100 Subject: [PATCH] try forcing GET --- scripts/get-sc-data.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/get-sc-data.sh b/scripts/get-sc-data.sh index ecbf084..c733d4e 100644 --- a/scripts/get-sc-data.sh +++ b/scripts/get-sc-data.sh @@ -35,14 +35,14 @@ else fi http_sc() { - echo "Command is http --debug ${SC_HTTPIE_OPTS[@]} ${SC_API_ENDPOINT}/$@" - http --debug "${SC_HTTPIE_OPTS[@]}" "${SC_API_ENDPOINT}/$@" + # echo "Command is http --debug ${SC_HTTPIE_OPTS[@]} ${SC_API_ENDPOINT}/$@" + http "${SC_HTTPIE_OPTS[@]}" "${SC_API_ENDPOINT}/$@" } echo "COMPONENT_NAME is ${COMPONENT_NAME}" >&2 #COMPONENT_SETTINGS=$(http_sc "components?filters[name][\$eq]=${COMPONENT_NAME}&populate=*") -COMPONENT_SETTINGS=$(http_sc "components?filters[name][\$eq]=${COMPONENT_NAME}&populate[0]=product&populate[1]=environments") +COMPONENT_SETTINGS=$(http_sc GET "components?filters[name][\$eq]=${COMPONENT_NAME}&populate[0]=product&populate[1]=environments") if [ $(echo $COMPONENT_SETTINGS | jq ".meta.pagination.total") -eq 0 ] then