summaryrefslogtreecommitdiff
path: root/checkVersions
diff options
context:
space:
mode:
Diffstat (limited to 'checkVersions')
-rwxr-xr-xcheckVersions14
1 files changed, 8 insertions, 6 deletions
diff --git a/checkVersions b/checkVersions
index 71f165d28..a5b4afc04 100755
--- a/checkVersions
+++ b/checkVersions
@@ -1091,18 +1091,20 @@ then
fi
done
elif echo "${src}" | \
- grep -q "http://www\.mkgmap\.org\.uk/download"
+ grep -q "https://www\.mkgmap\.org\.uk/download"
then
remUrl=$(
echo "${src}" | \
sed 's|-r[0-9]\+\.zip$|.html|'
)
remVer=r$(
- curl_it "${remUrl}" | \
- grep '"text: current()\.version"' | \
- tr '<>' '\n' |
- grep '^[0-9]\+$' | \
- latest_version
+ curl_it "${remUrl}" \
+ | sed '
+ s@^.*"text: current()\.version">\([0-9]\+\)<.*$@\1@
+ t
+ d
+ ' \
+ | latest_version
)
elif echo "${src}" | \
grep -qF '//www.roguetemple.com/'