Merge pull request #330634 from r-ryantm/auto-update/circumflex
[NixPkgs.git] / pkgs / servers / jicofo / update.sh
blob1b72920ac33b916c01fcf9a04732dc640733782c
1 #!/usr/bin/env nix-shell
2 #!nix-shell -i bash -p curl pup common-updater-scripts
4 set -eu -o pipefail
6 version="$(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)"
12 update-source-version jicofo "$version"