From ebee8f28ac45e7907a35331383f8b9b4ab338353 Mon Sep 17 00:00:00 2001 From: Solomon Hykes Date: Tue, 10 Sep 2013 18:08:02 -0700 Subject: [PATCH] hack/make.sh print a warning but don't exit if called outside a correct build environment. --- hack/make.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/hack/make.sh b/hack/make.sh index f7412a94d1..9414a5c1b6 100755 --- a/hack/make.sh +++ b/hack/make.sh @@ -25,10 +25,9 @@ set -e # but really, they shouldn't. We want to be in a container! RESOLVCONF=$(readlink --canonicalize /etc/resolv.conf) grep -q "$RESOLVCONF" /proc/mounts || { - echo "# I will only run within a container." - echo "# Try this instead:" - echo "docker build ." - exit 1 + echo "# WARNING! I don't seem to be running in a docker container. + echo "# The result of this command might be an incorrect build, and will not be officially supported." + echo "# Try this: 'docker build -t docker . && docker run docker ./hack/make.sh' } # List of bundles to create when no argument is passed