fix regex comparator for GOROOT (#1887)

This commit is contained in:
Royce Remer
2016-11-18 18:37:16 -08:00
committed by Harshavardhana
parent fa5a339434
commit 447cb7a726
+1 -1
View File
@@ -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"