collabora-online: accept version in the update script

This commit is contained in:
xzfc
2026-02-07 16:06:07 +00:00
parent 45cb75000f
commit f5123207f3
+10 -6
View File
@@ -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"