Mercurial > hg > orthanc-book
annotate Sphinx/source/CheckMercurialLinks.sh @ 1113:a588960a72e5 default tip
spelling
author | Alain Mazy <am@orthanc.team> |
---|---|
date | Mon, 28 Oct 2024 09:23:08 +0100 |
parents | 05b106383b2a |
children |
rev | line source |
---|---|
450 | 1 #!/bin/bash |
2 | |
993
05b106383b2a
migration to UCLouvain servers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
461
diff
changeset
|
3 grep -r '<https://orthanc.uclouvain.be/hg' | grep -vE 'CheckMercurialLinks.sh|~:' | cut -d '<' -f 2 | cut -d '>' -f 1 | sort | uniq | while read url |
450 | 4 do |
5 echo "${url}" | |
6 curl -s "${url}" > /dev/null | |
7 if [ $? -ne 0 ] | |
8 then | |
9 echo "ERROR!!!" | |
10 exit -1 | |
11 fi | |
12 done | |
13 | |
14 echo "SUCCESS" |