From 75fe7dbb27b9dc644efdeed1a7c447cfcdfc2502 Mon Sep 17 00:00:00 2001 From: Defelo Date: Wed, 27 Aug 2025 22:05:47 +0200 Subject: [PATCH] radicle-node: fix update script - only update to stable releases - sort git tags to find the latest version --- pkgs/by-name/ra/radicle-node/update.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/ra/radicle-node/update.sh b/pkgs/by-name/ra/radicle-node/update.sh index b1a79b18da55..586dd95cc2fa 100755 --- a/pkgs/by-name/ra/radicle-node/update.sh +++ b/pkgs/by-name/ra/radicle-node/update.sh @@ -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