Skip to content

Commit

Permalink
fix script to exit with 1 if error
Browse files Browse the repository at this point in the history
  • Loading branch information
ivvist committed Jan 15, 2024
1 parent bf0bdd6 commit d658e72
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/rebuild-test-bp3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ else
echo "airs-pb3 will be tested now..."
# run tests
go test -race ./...
status=$?
if [ $status -ne 0 ]; then
exit 1
fi
if [[ "$gh_event" == "push" ]];then
echo "Push new version of $reponame to git"
fi
Expand Down

0 comments on commit d658e72

Please sign in to comment.