Files
kryon/update_version.sh
2026-11-12 01:26:11 -03:00

7 lines
197 B
Bash
Executable File

#!/bin/sh
set -eu
cd "$(dirname "$0")"
version=$(sed -n 's/^## \[\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)\].*/\1/p' CHANGELOG.md | head -n 1)
test -n "$version"
printf '%s\n' "$version" > VERSION