From 447cb7a726ac53b1732c9fc1676986440fc81b6d Mon Sep 17 00:00:00 2001 From: Royce Remer Date: Fri, 18 Nov 2016 18:37:16 -0800 Subject: [PATCH] fix regex comparator for GOROOT (#1887) --- buildscripts/checkdeps.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildscripts/checkdeps.sh b/buildscripts/checkdeps.sh index a70c6351..522c892b 100755 --- a/buildscripts/checkdeps.sh +++ b/buildscripts/checkdeps.sh @@ -134,7 +134,7 @@ check_golang_env() { new_go_binary_path=$(readlink ${go_binary_path}) fi - if [[ !"$(dirname ${new_go_binary_path})" =~ *"${GOROOT%%*(/)}"* ]] ; then + if [[ ! "$(dirname ${new_go_binary_path})" =~ "${GOROOT}"* ]] ; then echo "The go binary found in your PATH configuration does not belong to the Go installation pointed by your GOROOT environment," \ "please refer to Go installation document" echo "https://github.com/minio/mc/blob/master/INSTALLGO.md#install-go-13"