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.
8 lines
197 B
Bash
8 lines
197 B
Bash
6 years ago
|
#!/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}"
|