summaryrefslogtreecommitdiff
path: root/checkVersions
diff options
context:
space:
mode:
Diffstat (limited to 'checkVersions')
-rwxr-xr-xcheckVersions11
1 files changed, 7 insertions, 4 deletions
diff --git a/checkVersions b/checkVersions
index 28ed0cedd..4fa5ac195 100755
--- a/checkVersions
+++ b/checkVersions
@@ -387,10 +387,13 @@ then
curl_it "${quVer}" | \
tr "\"" "\n" | \
grep "^${quVer#*sourceforge.net}\(${pkgname}\(-\|%20\)\)\?[0-9.-]" | \
- sed "s@/${pkgname}\(-\|%20\)@/@" | \
- sed 's|\.tar.*$||' | \
- sed "s|^${quVer#*sourceforge.net}\([0-9.-]\+\).*\$|\1|" | \
- sed "s|-\$||" | \
+ sed '
+ '"s@/${pkgname}\(-\|%20\)@/@"'
+ s|\.tar.*$||
+ '"s|^${quVer#*sourceforge.net}\([0-9.-]\+\).*\$|\1|"'
+ s|-$||
+ s|\.$||
+ ' | \
sort -V | \
tail -n1 \
)