1
0
Fork 0
mirror of https://github.com/mfornos/awesome-microservices.git synced 2024-10-30 12:03:53 -04:00

script to check README consistency

This commit is contained in:
mfornos 2015-05-03 21:17:36 +02:00
parent 02f7594240
commit eac0d4cdc8

14
test/check.sh Executable file
View file

@ -0,0 +1,14 @@
#!/usr/bin/env bash
#
# Checks the README links.
#
DIR=$(dirname $0)
cat $DIR/../README.md | grep -o -E 'https?://[%\+-_./[:digit:][:alpha:]]+' | \
xargs -n1 -P 10 curl -o /dev/null --silent --head --write-out '%{url_effective} %{http_code}\n' | \
awk '$2 >= 400'
exit 0