Mercurial > hg > orthanc-book
view Sphinx/source/CheckMercurialLinks.sh @ 458:839fa91cd799
merge
author | Alain Mazy <alain@mazy.be> |
---|---|
date | Tue, 07 Jul 2020 14:30:13 +0200 |
parents | 235a5541e06e |
children | a10f0e5be459 |
line wrap: on
line source
#!/bin/bash grep -r '<https://hg.orthanc-server.com' | grep -v CheckMercurialLinks.sh | cut -d '<' -f 2 | cut -d '>' -f 1 | sort | uniq | while read url do echo "${url}" curl -s "${url}" > /dev/null if [ $? -ne 0 ] then echo "ERROR!!!" exit -1 fi done echo "SUCCESS"