Skip to content

Commit

Permalink
fix: exit when bcc install fails (#5075)
Browse files Browse the repository at this point in the history
Co-authored-by: Zachary Bailey <[email protected]>
  • Loading branch information
zachary-bailey and Zachary Bailey authored Oct 11, 2024
1 parent 788b102 commit ab87960
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vhdbuilder/packer/install-dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,7 @@ fi

wait $BCC_PID
BCC_EXIT_CODE=$?
chmod 755 /var/log/bcc_installation.log

if [ $BCC_EXIT_CODE -eq 0 ]; then
echo "Bcc tools successfully installed."
Expand All @@ -552,8 +553,8 @@ if [ $BCC_EXIT_CODE -eq 0 ]; then
EOF
else
echo "Error: installBcc subshell failed with exit code $BCC_EXIT_CODE" >&2
exit $BCC_EXIT_CODE
fi
chmod 755 /var/log/bcc_installation.log
capture_benchmark "${SCRIPT_NAME}_finish_installing_bcc_tools"

# use the private_packages_url to download and cache packages
Expand Down

0 comments on commit ab87960

Please sign in to comment.