summary refs log tree commit diff
path: root/pkgs/servers/jicofo/update.sh
blob: 538e17d93da7bfd3bbe60b10c698ef89cf0bbc7a (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'[_-]' '/jicofo/ {printf $2"-"$3"\n"}' | \
    sort -u | \
    tail -n 1)"

update-source-version jicofo "$version"