summaryrefslogtreecommitdiff
path: root/manualPorts
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2022-11-03 23:02:05 +0100
committerErich Eckner <git@eckner.net>2022-11-03 23:02:05 +0100
commit7528fc6f1d9218cb97a36e328dec9cdaf3d7216a (patch)
treefe4872917df073c17b334cbecf90337913541f7e /manualPorts
parenta995508bfbbb3329c26ba5c4b550f208d387b2b3 (diff)
downloadcrux-ports-7528fc6f1d9218cb97a36e328dec9cdaf3d7216a.tar.xz
vigra: fix lastVersion.sh
Diffstat (limited to 'manualPorts')
-rwxr-xr-xmanualPorts/vigra/lastVersion.sh11
1 files changed, 7 insertions, 4 deletions
diff --git a/manualPorts/vigra/lastVersion.sh b/manualPorts/vigra/lastVersion.sh
index c7fd2f6..1786484 100755
--- a/manualPorts/vigra/lastVersion.sh
+++ b/manualPorts/vigra/lastVersion.sh
@@ -1,8 +1,11 @@
#!/bin/bash
-curl 'https://github.com/ukoethe/vigra/releases/' 2> /dev/null | \
- tr '<>' '\n\n' | \
- grep '^vigra-[0-9.]\+-src\.tar\.gz$' | \
- sed 's|^vigra-\([0-9.]\+\)-src\.tar\.gz$|\1|' | \
+curl -Ss 'https://github.com/ukoethe/vigra/releases/' | \
+ tr '<>' '\n' | \
+ sed '
+ s@^Version \([0-9.]\+\)$@\1@
+ t
+ d
+ ' | \
sort -V | \
tail -n1