diff options
author | Erich Eckner <git@eckner.net> | 2017-08-09 18:07:18 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-08-09 18:07:18 +0200 |
commit | 7b079c8da0f2179387ee61be06c9a87a1e92ab97 (patch) | |
tree | 44c31b4b58bbaed54c4de9e4410bb23b6d580a4e /checkVersions | |
parent | 3774a5eab7d87e3b0dd45f5c946f3fe7d60a3e46 (diff) | |
download | archlinuxewe-7b079c8da0f2179387ee61be06c9a87a1e92ab97.tar.xz |
remove . from end of version
Diffstat (limited to 'checkVersions')
-rwxr-xr-x | checkVersions | 11 |
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 \ ) |