From f5123207f3f167b9dfc3d8c94af9019ea2934fbf Mon Sep 17 00:00:00 2001 From: xzfc Date: Sat, 7 Feb 2026 16:06:00 +0000 Subject: [PATCH] collabora-online: accept version in the update script --- pkgs/by-name/co/collabora-online/update.sh | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/pkgs/by-name/co/collabora-online/update.sh b/pkgs/by-name/co/collabora-online/update.sh index 4fb4eb12deb2..33b08efe7f4b 100755 --- a/pkgs/by-name/co/collabora-online/update.sh +++ b/pkgs/by-name/co/collabora-online/update.sh @@ -9,12 +9,16 @@ cd "$PACKAGE_DIR/.." while ! test -f default.nix; do cd .. ; done NIXPKGS_DIR="$PWD" -new_version="$( - list-git-tags --url=https://github.com/CollaboraOnline/online \ - | grep --perl-regex --only-matching '^cp-\K[0-9.-]+$' \ - | sort --version-sort \ - | tail -n1 -)" +if [ "$1" ]; then + new_version=$1 +else + new_version="$( + list-git-tags --url=https://github.com/CollaboraOnline/online \ + | grep --perl-regex --only-matching '^cp-\K[0-9.-]+$' \ + | sort --version-sort \ + | tail -n1 + )" +fi cd "$NIXPKGS_DIR" update-source-version collabora-online "$new_version"