Fix inContainer detection which CROSSPLATFORM env variable missing
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
This commit is contained in:
parent
6361117b59
commit
b985db92a3
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue