certificates/.version.sh
2022-10-19 16:28:31 -07:00

7 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}"