mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-16 00:00:37 +08:00
10 lines
268 B
Bash
Executable File
10 lines
268 B
Bash
Executable File
#! /usr/bin/env sh
|
|
|
|
if ! version="$(git describe --match='releases/*' --candidates=1 2>/dev/null)"; then
|
|
echo "fatal: no version tag found by 'git describe'" >&2 ; exit 1
|
|
fi
|
|
# Remove the `releases/` prefix from version.
|
|
version=${version#releases/}
|
|
|
|
echo "$version"
|