comparison Sphinx/source/CheckMercurialLinks.sh @ 450:235a5541e06e

CheckMercurialLinks.sh
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 03 Jul 2020 09:39:25 +0200
parents
children a10f0e5be459
comparison
equal deleted inserted replaced
449:2922fb1bd65e 450:235a5541e06e
1 #!/bin/bash
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
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"