about summary refs log tree commit diff
path: root/nixpkgs/pkgs/servers/jitsi-videobridge/update.sh
blob: bee9c4aa6de281199840a72c64d308b710a5130f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p curl pup common-updater-scripts

set -eu -o pipefail

version="$(curl https://download.jitsi.org/stable/ | \
    pup 'a[href] text{}' | \
    awk -F'[_-]' '/jitsi-videobridge2/ {printf $3"-"$4"-"$5"\n"}' | \
    sort -u | \
    tail -n 1)"

update-source-version jitsi-videobridge "$version"