3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/networking/instant-messengers/zoom-us/update.sh
Clemens Lutz 066018f6e1 zoom-us: Update updater script for new Zoom version syntax
Since version 5.8.0 (16) the zoom.us version naming scheme has changed.
Instead of x.y.z (a.b), the new scheme is x.y.z (a).

This commit adapts the awk script to extract versions from the new
naming scheme.
2021-10-27 15:23:07 +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"."$4"."$6"\n"}')"
update-source-version zoom-us "$version"