Unverified Commit ed87510a authored by Defelo's avatar Defelo
Browse files

radicle-node-unstable: fix update script

Ensure pre-releases like `1.7.0-rc.1` are not chosen when the respective
full release (i.e. `1.7.0`) is available.
parent 6f5594ca
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p coreutils gnugrep common-updater-scripts nix-update
#!nix-shell -i bash -p coreutils gnugrep gnused common-updater-scripts nix-update

version=$(list-git-tags | grep -oP '^releases/\K\d+\.\d+\.\d+.*' | sort -rV | head -1)
version=$(list-git-tags | grep -oP '^releases/\K\d+\.\d+\.\d+.*' \
  | sed -E 's/-(alpha|beta|rc)\./~\1./' | sort -rV | tr '~' - | head -1)
nix-update --version="$version" radicle-node-unstable --override-filename pkgs/by-name/ra/radicle-node/unstable.nix