radicle-node: fix update script

- only update to stable releases
- sort git tags to find the latest version
This commit is contained in:
Defelo
2025-08-27 23:49:38 +02:00
parent 08e8819a4f
commit 75fe7dbb27
+2 -2
View File
@@ -1,5 +1,5 @@
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p coreutils gnused common-updater-scripts nix-update
#!nix-shell -i bash -p coreutils gnugrep common-updater-scripts nix-update
version=$(list-git-tags | tail -1 | sed 's|^releases/||')
version=$(list-git-tags | grep -oP '^releases/\K\d+\.\d+\.\d+$' | sort -rV | head -1)
nix-update --version="$version" radicle-node