Fix inContainer detection which CROSSPLATFORM env variable missing

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
This commit is contained in:
Vincent Demeester 2017-03-02 14:36:37 +01:00
parent 6361117b59
commit b985db92a3
No known key found for this signature in database
GPG key ID: 083CC6FD6EB699A3

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