summaryrefslogtreecommitdiff
path: root/checkVersions
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-08-09 18:07:18 +0200
committerErich Eckner <git@eckner.net>2017-08-09 18:07:18 +0200
commit7b079c8da0f2179387ee61be06c9a87a1e92ab97 (patch)
tree44c31b4b58bbaed54c4de9e4410bb23b6d580a4e /checkVersions
parent3774a5eab7d87e3b0dd45f5c946f3fe7d60a3e46 (diff)
downloadarchlinuxewe-7b079c8da0f2179387ee61be06c9a87a1e92ab97.tar.xz
remove . from end of version
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 \
)