3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/networking/instant-messengers/zoom-us/update.sh
Doron Behar 6d9570e9f1 zoom-us: Make update script get exact version
Their website has changed the format in which they display the version,
into something a bit more sophisticated.
2021-01-20 12:47:53 +02:00

11 lines
291 B
Bash
Executable file

#!/usr/bin/env nix-shell
#!nix-shell -i bash -p curl pup common-updater-scripts
set -eu -o pipefail
version="$(curl -Ls https://zoom.us/download\?os\=linux | \
pup '.linux-ver-text text{}' | \
awk -F'[ ().]' '{printf $2"."$3"."$6"."$7"\n"}')"
update-source-version zoom-us "$version"