summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Barri2023-07-03 15:25:17 +1000
committerDavid Barri2023-07-03 15:25:17 +1000
commit1a00d5e8575e90c505b13f2a70c0d78ab28f1e05 (patch)
tree8b0df836e9946b511b1e60753cdfc09ba891f928
parentbc8d6ea6e5b1026df33153dc81c99136c03c6ccb (diff)
downloadaur-1a00d5e8575e90c505b13f2a70c0d78ab28f1e05.tar.gz
Fix version detection
-rw-r--r--aur-cfg.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/aur-cfg.sh b/aur-cfg.sh
index d3e351ea103d..f595a599f9a0 100644
--- a/aur-cfg.sh
+++ b/aur-cfg.sh
@@ -1,9 +1,10 @@
function get_latest_version {
curl -s https://get.atomicwallet.io/download/ \
| grep 'atomicwallet-2.*\.rpm"' \
- | sort \
+ | perl -pe 's/.*"atomicwallet-(.+?).rpm".*/\1/; s/\./ /g' \
+ | sort -k1n -k2n -k3n \
| tail -1 \
- | sed 's/.*wallet-\(2[0-9.-]*\)\.rpm.*/\1/'
+ | tr ' ' .
}
version_suffix_separator=-