Skip to content

Commit

Permalink
linking to right check file (#1957)
Browse files Browse the repository at this point in the history
Took some time to figure out how to do this locally. but also this fix will match github action results so people dont get bogus errors.
  • Loading branch information
anantshri authored Oct 29, 2021
1 parent 15e2411 commit 0406e80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/Apply_Link_Check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ cd ../Document
if test -f "../link-check-result.out"; then
rm ../link-check-result.out
fi
find . -name \*.md -exec markdown-link-check -q -c ../.markdownlinkcheck.json {} \; 1>../link-check-result.out 2>&1
find . -name \*.md -exec markdown-link-check -q -c ../.github/workflows/config/mlc_config.json {} \; 1>../link-check-result.out 2>&1
errors=`grep -c "ERROR:" ../link-check-result.out`
content=`cat ../link-check-result.out`
if [[ $errors != "0" ]]
Expand All @@ -16,4 +16,4 @@ then
else
echo "[+] No error found by the Links validator."
rm ../link-check-result.out
fi
fi

0 comments on commit 0406e80

Please sign in to comment.