summary refs log tree commit diff
path: root/pkgs/games/minecraft/update.sh
blob: 02b362e839be9a561a7295f9872ea0d785841963 (plain) (blame)
1
2
3
4
5
6
7
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p curl jq gnugrep common-updater-scripts

set -eu -o pipefail

version=$(curl -s 'https://aur.archlinux.org/rpc/?v=5&type=info&arg[]=minecraft-launcher' | jq '.results[0].Version' | grep -Po '[.\d]*(?=-)')
update-source-version minecraft "$version"