annotate Sphinx/source/CheckMercurialLinks.sh @ 858:09be5f68aabf
dicom-web and MainDicomTags
author |
Alain Mazy <am@osimis.io> |
date |
Thu, 23 Jun 2022 15:12:56 +0200 |
parents |
a10f0e5be459 |
children |
05b106383b2a |
rev |
line source |
450
|
1 #!/bin/bash
|
|
2
|
461
|
3 grep -r '<https://hg.orthanc-server.com' | 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"
|