Skip to content

Commit

Permalink
Bugfix: With this bugfix you don't need to add retry to the code as t…
Browse files Browse the repository at this point in the history
…he lambda_loader.sh returns only the necessary json format response
  • Loading branch information
ikerei committed Jun 13, 2022
1 parent 08a9019 commit 6bde41a
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 6bde41a

Please sign in to comment.