mirror of
https://github.com/tailscale/tailscale.git
synced 2025-04-15 19:21:39 +00:00
11 lines
203 B
Plaintext
11 lines
203 B
Plaintext
![]() |
ver=$(git describe | sed 's/^v//')
|
||
|
if [ "$ver" = "${ver%-*}" ]; then
|
||
|
# no sub-version. ie. it's 0.05 and not 0.05-341
|
||
|
# so add a sub-version.
|
||
|
ver=$ver-0
|
||
|
fi
|
||
|
echo "$ver" >$3
|
||
|
|
||
|
redo-always
|
||
|
redo-stamp <$3
|