mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 13:41:26 +00:00
8 lines
295 B
Bash
8 lines
295 B
Bash
|
#!/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"
|