1#!/usr/bin/env nix-shell
2#!nix-shell -i bash -p curl pup common-updater-scripts
3
4set -eu -o pipefail
5
6version="$(curl https://download.jitsi.org/stable/ | \
7 pup 'a[href] text{}' | \
8 awk -F'[_-]' '/jicofo/ {printf $2"-"$3"\n"}' | \
9 sort -Vu | \
10 tail -n 1)"
11
12update-source-version jicofo "$version"