Browse Source

Merge pull request #3968 from sjpotter/fix-build

remove bash'ism
Xiang Li 10 years ago
parent
commit
9220a47c30
1 changed files with 1 additions and 1 deletions
  1. 1 1
      build

+ 1 - 1
build

@@ -16,7 +16,7 @@ GIT_SHA=`git rev-parse --short HEAD || echo "GitNotFound"`
 val=$(go version)
 val=$(go version)
 # if 'go version' contains string 'devel', it assumes the go tip branch,
 # if 'go version' contains string 'devel', it assumes the go tip branch,
 # which is greater than go 1.5+.
 # which is greater than go 1.5+.
-if [[ $val == *"devel"* ]]
+if test "${val#*devel}" != "$val" 
 then
 then
 	LINK_OPERATOR="="
 	LINK_OPERATOR="="
 else
 else