Skip to content

Commit aedce7b

Browse files
unclejay80sschuberth
authored andcommitted
ort-evaluator: Use the correct results file
Use the advisor results file if the scanner is disabled but the advisor is enabled. Signed-off-by: Jürgen Wischer <[email protected]>
1 parent 4812b64 commit aedce7b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

scripts/ort-evaluator.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@
44
# against customizable policy rules.
55

66
if [[ "$ORT_DISABLE_SCANNER" = "true" ]]; then
7-
ORT_RESULTS_INPUT_FILE=$ORT_RESULTS_ANALYZER_FILE
8-
elif [[ "$ORT_DISABLE_ADVISOR" = "false" ]]; then
9-
ORT_RESULTS_INPUT_FILE=$ORT_RESULTS_ADVISOR_FILE
7+
if [[ "$ORT_DISABLE_ADVISOR" = "true" ]]; then
8+
ORT_RESULTS_INPUT_FILE=$ORT_RESULTS_ANALYZER_FILE
9+
else
10+
ORT_RESULTS_INPUT_FILE=$ORT_RESULTS_ADVISOR_FILE
11+
fi
1012
else
1113
ORT_RESULTS_INPUT_FILE=$ORT_RESULTS_SCANNER_FILE
1214
fi

0 commit comments

Comments
 (0)