about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/tools/trunk-io/update.sh
blob: 9110bb633527a678f5ee42daaef2392d4e0c9952 (plain) (blame)
1
2
3
4
5
6
7
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p curl pcre common-updater-scripts

set -eu -o pipefail

version="$(curl -fsSL https://trunk.io/releases/trunk | grep -Fi 'readonly TRUNK_LAUNCHER_VERSION=' | pcregrep -o1 '"(\d+(?:\.\d+)+)"')"
update-source-version trunk-io "$version"