Mercurial > hg > orthanc-book
view Sphinx/source/CheckMercurialLinks.sh @ 964:4b9fe9080b38
Added tag Orthanc-1.12.1 for changeset a6bf749b3c04
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 04 Jul 2023 18:50:32 +0200 |
parents | a10f0e5be459 |
children | 05b106383b2a |
line wrap: on
line source
#!/bin/bash grep -r '<https://hg.orthanc-server.com' | grep -vE '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"