diff options
Diffstat (limited to 'check-and-update-new-version.sh')
-rwxr-xr-x | check-and-update-new-version.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/check-and-update-new-version.sh b/check-and-update-new-version.sh index 18db62f5a46e..1c5cfb1251f2 100755 --- a/check-and-update-new-version.sh +++ b/check-and-update-new-version.sh @@ -4,6 +4,11 @@ touch lastVersion lastVersion=`cat lastVersion` currentVersion=`curl https://www.mkgmap.org.uk/download/mkgmap.html --silent | grep "Download mkgmap release" | sed -rn 's/.*([[:digit:]][[:digit:]][[:digit:]][[:digit:]]).*/\1/p'` +if [ -z "${currentVersion}" ]; then + echo "mkgmap.org.uk is down or the version number could not be parsed" + exit 0 +fi + if [ "${lastVersion}" = "${currentVersion}" ]; then exit 0 fi |