From 2c2fe7ee8eb6bb1d0baf88ef5ad424a8829326f2 Mon Sep 17 00:00:00 2001 From: Shaya Potter Date: Mon, 7 Dec 2015 21:05:55 -0800 Subject: [PATCH] build: remove bash'ism [[ is not supported by posix bourne shell so use a substring match that is --- build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build b/build index 7aea4c14aef..ac6e37c5ff5 100755 --- a/build +++ b/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