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:
parent
02f7594240
commit
eac0d4cdc8
1 changed files with 14 additions and 0 deletions
14
test/check.sh
Executable file
14
test/check.sh
Executable 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
|
||||||
|
|
Loading…
Reference in a new issue