Skip to content

Commit 6bde41a

Browse files
committed
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
1 parent 08a9019 commit 6bde41a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lambda_loader.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export ENABLED_FUNCTION="${ENABLED_FUNCTION}"
1515

1616
if [ ! -d "${DESTINATION}" ]; then
1717
curl -s "${FUNCTION_BEAT_URL}" > "${DESTINATION}".tar.gz
18-
tar xzvf "${DESTINATION}".tar.gz
18+
tar xzvf "${DESTINATION}".tar.gz > /dev/null
1919
rm -rf "${DESTINATION}".tar.gz
2020
fi
2121

@@ -24,6 +24,7 @@ cp -f "${CONFIG_FILE}" "${DESTINATION}"/functionbeat.yml
2424
cd "${DESTINATION}"
2525
./functionbeat -v -e package --output ./../"${DESTINATION}-release".zip
2626

27+
cd ..
2728
rm -rf "${DESTINATION}"
2829

2930
jq -M -c -n --arg destination "${DESTINATION}-release.zip" '{"filename": $destination}'

0 commit comments

Comments
 (0)