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

Do not check links for removed files

parent 1ffaa44e
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