Skip to content

Commit

Permalink
Merge pull request #1 from ikerreina/bugfix/retry
Browse files Browse the repository at this point in the history
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

@ikerreina thanks for contributing
  • Loading branch information
PacoVK authored Jun 13, 2022
2 parents e021bed + 6bde41a commit fd54a6e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lambda_loader.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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}'

0 comments on commit fd54a6e

Please sign in to comment.