From 6bde41a05f447d25925759d798f948a2fae8166a Mon Sep 17 00:00:00 2001 From: Iker AWS Date: Mon, 13 Jun 2022 14:00:39 +0000 Subject: [PATCH] Bugfix: With this bugfix you don't need to add retry to the code as the lambda_loader.sh returns only the necessary json format response --- lambda_loader.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lambda_loader.sh b/lambda_loader.sh index 49d537d..0cae309 100755 --- a/lambda_loader.sh +++ b/lambda_loader.sh @@ -15,7 +15,7 @@ export ENABLED_FUNCTION="${ENABLED_FUNCTION}" if [ ! -d "${DESTINATION}" ]; then curl -s "${FUNCTION_BEAT_URL}" > "${DESTINATION}".tar.gz - tar xzvf "${DESTINATION}".tar.gz + tar xzvf "${DESTINATION}".tar.gz > /dev/null rm -rf "${DESTINATION}".tar.gz fi @@ -24,6 +24,7 @@ cp -f "${CONFIG_FILE}" "${DESTINATION}"/functionbeat.yml cd "${DESTINATION}" ./functionbeat -v -e package --output ./../"${DESTINATION}-release".zip +cd .. rm -rf "${DESTINATION}" jq -M -c -n --arg destination "${DESTINATION}-release.zip" '{"filename": $destination}'