Skip to content

Commit fd54a6e

Browse files
authored
Merge pull request #1 from ikerreina/bugfix/retry
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
2 parents e021bed + 6bde41a commit fd54a6e

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)