Merge pull request #5241 from claws/avoid_differences_in_gnu_and_bsd_cut

use sed instead of cut to accomodate GNU and BSD differences
This commit is contained in:
Xiang Li 2016-04-30 20:58:57 -07:00
commit b9ea5f6d90

2
build
View File

@ -11,7 +11,7 @@ GIT_SHA=`git rev-parse --short HEAD || echo "GitNotFound"`
LINK_OPERATOR="="
host_arch=$(GOARCH="" go env | egrep 'GOARCH=' | cut --delimiter='"' --field=2)
host_arch=$(GOARCH="" go env | egrep 'GOARCH=' | sed 's/^GOARCH="\(.*\)".*/\1/')
if [ -z "${GOARCH}" ] || [ "${GOARCH}" = "${host_arch}" ]; then
out="bin"