mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-29 14:57:28 +03:00
zoom-us: Update script to commit
This commit is contained in:
parent
79016d9f40
commit
714d9130bc
@ -3,5 +3,15 @@
|
||||
|
||||
set -eu -o pipefail
|
||||
|
||||
oldVersion=$(nix-instantiate --eval -E "with import ./. {}; zoom-us.version or (builtins.parseDrvName zoom-us.name).version" | tr -d '"')
|
||||
version="$(curl -sI https://zoom.us/client/latest/zoom_x86_64.tar.xz | grep -Fi 'Location:' | pcregrep -o1 '/(([0-9]\.?)+)/')"
|
||||
update-source-version zoom-us "$version"
|
||||
|
||||
if [ ! "${oldVersion}" = "${version}" ]; then
|
||||
update-source-version zoom-us "$version"
|
||||
nixpkgs="$(git rev-parse --show-toplevel)"
|
||||
default_nix="$nixpkgs/pkgs/applications/networking/instant-messengers/zoom-us/default.nix"
|
||||
git add "${default_nix}"
|
||||
git commit -m "zoom-us: ${oldVersion} -> ${version}"
|
||||
else
|
||||
echo "zoom-us is already up-to-date"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user