about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/networking/instant-messengers/bluejeans/update.sh
blob: 2c527462003e4e1a379bd50723acc0ce0b79c987 (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 -Ls https://www.bluejeans.com/download | \
    pup 'a[aria-label~="Linux"] attr{href}' | \
    #output contains *.deb and *.rpm
    grep "\.rpm" | \
    awk -F'[ ._ ]' '{printf $6"."$7"."$8"."$9"\n"}')"

update-source-version bluejeans-gui "$version"