Skip to content

Commit

Permalink
build: remove bash'ism
Browse files Browse the repository at this point in the history
[[ is not supported by posix bourne shell so use a substring match that is
  • Loading branch information
sjpotter committed Dec 8, 2015
1 parent 977d361 commit 2c2fe7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2c2fe7e

Please sign in to comment.