You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#!/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}"
|