Skip to content

Commit 7bd07f3

Browse files
committed
run_static_analysis.sh: fix scan-build archive path
move any error reports to the top-level of OUTPUT_DIR rather than BUILD_DIR Change-Id: Icb6677c42a89ef86d9d295a27b79a8a591672b87
1 parent 5ecee06 commit 7bd07f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

infra/run_static_analysis.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,10 @@ scan_build make -j4
8585

8686
index="$(find "${OUTPUT_DIR}" -name index.html)"
8787
if [[ -f "${index}" ]]; then
88-
mv "$(dirname "${index}")/"* .
88+
mv "$(dirname "${index}")/"* "${OUTPUT_DIR}"
8989
else
9090
# make a empty report to wipe out any old bug reports.
91-
cat << EOT > index.html
91+
cat << EOT > "${OUTPUT_DIR}/index.html"
9292
<html>
9393
<body>
9494
No bugs reported.

0 commit comments

Comments
 (0)