From f25f7ecc80a8212fda63ea148343d936f93e70ea Mon Sep 17 00:00:00 2001 From: Denton Gentry Date: Thu, 29 Jul 2021 20:59:07 -0700 Subject: [PATCH] tailscale-version.sh: adjust version format. Use the same version number format as other platforms. Signed-off-by: Denton Gentry --- version/tailscale-version.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/version/tailscale-version.sh b/version/tailscale-version.sh index 6412235..e8d3529 100755 --- a/version/tailscale-version.sh +++ b/version/tailscale-version.sh @@ -36,6 +36,8 @@ git fetch -q --all --tags git checkout -q "$mod_version" eval $(./build_dist.sh shellvars) -echo ${VERSION_SHORT}-`git describe --always --exclude "*" --dirty --abbrev=$1` +git_hash=$(git rev-parse HEAD) +short_hash=$(echo "$git_hash" | cut -c1-9) +echo ${VERSION_SHORT}-t${short_hash} cd /tmp rm -rf "$tailscale_clone"