File: .version.sh

package info (click to toggle)
golang-github-smallstep-certificates 0.20.0-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 23,144 kB
  • sloc: sh: 278; makefile: 170
file content (7 lines) | stat: -rwxr-xr-x 197 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
#!/usr/bin/env bash
read -r firstline < .VERSION
last_half="${firstline##*tag: }"
if [[ ${last_half::1} == "v" ]]; then
    version_string="${last_half%%[,)]*}"
fi
echo "${version_string:-v0.0.0}"