Skip to content

Commit

Permalink
Merge pull request moby#31485 from vdemeester/fix-inContainer-detection
Browse files Browse the repository at this point in the history
Fix inContainer detection which CROSSPLATFORM env variable missing
  • Loading branch information
vdemeester authored Mar 3, 2017
2 parents 91f1143 + b985db9 commit 305601b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hack/make.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 305601b

Please sign in to comment.