mirror of
https://github.com/smallstep/certificates.git
synced 2024-11-15 18:12:59 +00:00
d07c9accea
Fixes #1115
8 lines
195 B
Bash
Executable File
8 lines
195 B
Bash
Executable File
#!/usr/bin/env sh
|
|
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}"
|