Skip to content

Commit bbc9b45

Browse files
authored
Apply suggestions from code review
1 parent 126e0f5 commit bbc9b45

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/check_benchmark_thresholds.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,15 @@ elif [[ "$rc" == 2 ]]; then
4747

4848
if [[ "$update_rc" != 0 ]]; then
4949
error "Benchmark failed to run due to build error."
50-
exit 1
50+
exit $update_rc
5151
fi
5252

5353
echo "=== BEGIN DIFF ===" # use echo, not log for clean output to be scraped
5454
git diff --exit-code HEAD
5555
# all other errors
5656
else
5757
error "Benchmark failed to run due to build error."
58-
exit 1
58+
exit $rc
5959
fi
6060

6161

0 commit comments

Comments
 (0)