go.ligato.io/vpp-agent/v3@v3.5.0/scripts/check_links.sh (about) 1 #!/usr/bin/env bash 2 3 res=0 4 5 for i in `find . \( -path ./vendor -o -path ./vpp \) -prune -o -name "*.md"` 6 do 7 if [ -d "$i" ]; then 8 continue 9 fi 10 11 out=$(FORCE_COLOR=1 markdown-link-check -q "$i") 12 if [ "$?" -ne 0 ]; then 13 echo "${out}" 14 res=1 15 fi 16 done 17 18 exit ${res}