check for new or moved files

This commit is contained in:
David Holdeman 2023-01-19 07:43:18 -06:00
parent b4eea1d971
commit 6ee939fbdf
1 changed files with 8 additions and 3 deletions

View File

@ -9,9 +9,14 @@ if [ "$?" -gt 0 ]; then
STATUS=1
fi
bash wiki-tools/brokenlinks.sh -s
if [ "$?" -gt 0 ]; then
STATUS=1
if git diff --compact-summary HEAD~1 HEAD | grep -E "=>|\(new\)" >/dev/null; then
bash wiki-tools/brokenlinks.sh -s
if [ "$?" -gt 0 ]; then
STATUS=1
fi
else
bash wiki-tools/brokenlinks.sh -s $CHANGED
fi
return "$STATUS"