view Sphinx/source/CheckMercurialLinks.sh @ 1128:fdca96f6ce57

added quick start guide for Stone Web viewer
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 17 Jan 2025 11:03:58 +0100 (2 months ago)
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"