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

Fix inContainer detection which CROSSPLATFORM env variable missing
Upstream-commit: 305601bb31b56b8a0b0380131f8ea157aa8dce55
Component: engine
This commit is contained in:
Vincent Demeester
2017-03-03 08:35:59 +01:00
committed by GitHub

View File

@ -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