mirror of
https://github.com/Icinga/icinga2.git
synced 2025-08-25 19:48:16 +02:00
21 lines
343 B
Bash
Executable File
21 lines
343 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
PATH="$(pwd)/node_modules/.bin:${PATH}"
|
|
|
|
errors=0
|
|
|
|
while read -r file; do
|
|
if ! markdown-link-check --config tools/markdown-link-check.json --quiet "$file"; then
|
|
(( errors++ )) || true
|
|
fi
|
|
done < <(find -name \*.md)
|
|
|
|
if [[ $errors -gt 0 ]]; then
|
|
echo
|
|
echo "Found ${errors} files with errors!"
|
|
echo
|
|
exit 1
|
|
fi
|