Skip to content

Commit 88c63e6

Browse files
committed
bugbot fix
1 parent 032b2a8 commit 88c63e6

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

scripts/test/detector_corpora_test.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ scan() {
6161
main_include_flag=(--include-detectors="$INCLUDE_DETECTORS_MAIN")
6262
fi
6363

64+
local rc=0
6465
if [[ -n "${TRUFFLEHOG_BIN_MAIN:-}" ]]; then
6566
# Single S3 download teed to both binaries simultaneously.
6667
unzstd -c "$input" 2>> "$STDERR_FILE" \
@@ -86,6 +87,7 @@ scan() {
8687
--print-avg-detector-time \
8788
"${INCLUDE_FLAG[@]}" \
8889
stdin >> "$OUTPUT_JSONL" 2>> "$STDERR_FILE"
90+
rc=$?
8991
wait
9092
else
9193
unzstd -c "$input" 2>> "$STDERR_FILE" \
@@ -100,8 +102,10 @@ scan() {
100102
--print-avg-detector-time \
101103
"${INCLUDE_FLAG[@]}" \
102104
stdin >> "$OUTPUT_JSONL" 2>> "$STDERR_FILE"
105+
rc=$?
103106
fi
104107
set -e
108+
return $rc
105109
}
106110

107111
for CORPORA_FILE in "$@"; do

0 commit comments

Comments
 (0)