mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
build: remove bash'ism
[[ is not supported by posix bourne shell so use a substring match that is
This commit is contained in:
parent
977d3615f7
commit
2c2fe7ee8e
2
build
2
build
@ -16,7 +16,7 @@ GIT_SHA=`git rev-parse --short HEAD || echo "GitNotFound"`
|
||||
val=$(go version)
|
||||
# if 'go version' contains string 'devel', it assumes the go tip branch,
|
||||
# which is greater than go 1.5+.
|
||||
if [[ $val == *"devel"* ]]
|
||||
if test "${val#*devel}" != "$val"
|
||||
then
|
||||
LINK_OPERATOR="="
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user