2026-10-22 17:39:25 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
set -eu
|
2026-10-26 06:53:10 +01:00
|
|
|
# Chart releases follow the upstream Loops application release tag.
|
|
|
|
|
description=$(git describe --tags --long --match 'v[0-9]*' --dirty)
|
2026-10-22 17:39:25 +02:00
|
|
|
case "$description" in *-dirty) echo 'Refusing dirty tree' >&2; exit 1 ;; esac
|
2026-10-26 06:53:10 +01:00
|
|
|
version=${description#v}
|
2026-10-22 17:39:25 +02:00
|
|
|
case "$version" in *-0-g*) version=${version%%-0-g*} ;; esac
|
|
|
|
|
printf '%s\n' "$version"
|