Sfoglia il codice sorgente

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

Fix inContainer detection which CROSSPLATFORM env variable missing
Vincent Demeester 8 anni fa
parent
commit
305601bb31
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      hack/make.sh

+ 1 - 1
hack/make.sh

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