mirror of
https://github.com/smallstep/certificates.git
synced 2024-11-19 09:25:37 +00:00
8 lines
197 B
Bash
8 lines
197 B
Bash
|
#!/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}"
|