Skip to content
Snippets Groups Projects
Commit 15f87df9 authored by Martin Schroschk's avatar Martin Schroschk
Browse files

Merge branch 'check-links-not-for-rm' into 'preview'

Do not check links for removed files

See merge request zih/hpc-compendium/hpc-compendium!154
parents 1ffaa44e d30333f7
No related branches found
No related tags found
3 merge requests!322Merge preview into main,!319Merge preview into main,!154Do not check links for removed files
......@@ -44,9 +44,12 @@ any_fails=false
files=$(git diff --name-only "$(git merge-base HEAD "$branch")")
for f in $files; do
if [ "${f: -3}" == ".md" ]; then
echo "Checking links for $f"
if ! $mlc -q -p "$f"; then
# do not check links for deleted files
if [ -e x.txt ]; then
echo "Checking links for $f"
if ! $mlc -q -p "$f"; then
any_fails=true
fi
fi
fi
done
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment