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

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

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