comparison Sphinx/source/CheckMercurialLinks.sh @ 461:a10f0e5be459

Orthanc 1.7.2
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 08 Jul 2020 16:34:29 +0200
parents 235a5541e06e
children 05b106383b2a
comparison
equal deleted inserted replaced
460:b2e237331fcc 461:a10f0e5be459
1 #!/bin/bash 1 #!/bin/bash
2 2
3 grep -r '<https://hg.orthanc-server.com' | grep -v CheckMercurialLinks.sh | cut -d '<' -f 2 | cut -d '>' -f 1 | sort | uniq | while read url 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
4 do 4 do
5 echo "${url}" 5 echo "${url}"
6 curl -s "${url}" > /dev/null 6 curl -s "${url}" > /dev/null
7 if [ $? -ne 0 ] 7 if [ $? -ne 0 ]
8 then 8 then