Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
409 B
Bash
Raw Normal View History

2025-04-22 01:17:51 +02:00
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p curl pup common-updater-scripts
set -eu -o pipefail
version=$(
curl -s http://www.necessegame.com/server \
| pup 'a[href*="linux64"] text{}' \
| awk -F'[v ]' '/Linux64/ {print $4"-"$6}' \
| sort -Vu \
| tail -n1
)
[[ $version =~ ^[0-9]+\.[0-9]+\.[0-9]+\-[0-9]+$ ]] \
&& update-source-version necesse-server "$version"