mirror of
https://github.com/tailscale/tailscale.git
synced 2025-04-18 12:32:13 +00:00
VERSION: rename to version.txt to work around macOS limitations.
Signed-off-by: David Anderson <danderson@tailscale.com>
This commit is contained in:
parent
65bad9a8bd
commit
de5da37a22
@ -22,7 +22,7 @@ case $# in
|
|||||||
# Load the base version and optional corresponding git hash
|
# Load the base version and optional corresponding git hash
|
||||||
# from the VERSION file. If there is no git hash in the file,
|
# from the VERSION file. If there is no git hash in the file,
|
||||||
# we use the hash of the last change to the VERSION file.
|
# we use the hash of the last change to the VERSION file.
|
||||||
version_file="$(dirname $0)/../VERSION"
|
version_file="$(dirname $0)/../VERSION.txt"
|
||||||
IFS=".$IFS" read -r major minor patch base_git_hash <"$version_file"
|
IFS=".$IFS" read -r major minor patch base_git_hash <"$version_file"
|
||||||
if [ -z "$base_git_hash" ]; then
|
if [ -z "$base_git_hash" ]; then
|
||||||
base_git_hash=$(git rev-list --max-count=1 HEAD -- $version_file)
|
base_git_hash=$(git rev-list --max-count=1 HEAD -- $version_file)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user