瀏覽代碼

Merge pull request #31485 from vdemeester/fix-inContainer-detection

Fix inContainer detection which CROSSPLATFORM env variable missing
Vincent Demeester 8 年之前
父節點
當前提交
305601bb31
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      hack/make.sh

+ 1 - 1
hack/make.sh

@@ -36,7 +36,7 @@ if [ "$(go env GOHOSTOS)" = 'windows' ]; then
 		unset inContainer
 	fi
 else
-	if [ "$PWD" != "/go/src/$DOCKER_PKG" ] || [ -z "$DOCKER_CROSSPLATFORMS" ]; then
+	if [ "$PWD" != "/go/src/$DOCKER_PKG" ]; then
 		unset inContainer
 	fi
 fi