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:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user