Mercurial > hg > orthanc-book
view Sphinx/source/CheckMercurialLinks.sh @ 1022:2969cbebbc91
Added tag Orthanc-1.12.3 for changeset a3436ae3709c
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 31 Jan 2024 14:01:57 +0100 |
parents | 05b106383b2a |
children |
line wrap: on
line source
#!/bin/bash grep -r '<https://orthanc.uclouvain.be/hg' | 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"