Browse code

hack/make.sh print a warning but don't exit if called outside a correct build environment.

Solomon Hykes authored on 2013/09/11 10:08:02
Showing 1 changed files
... ...
@@ -25,10 +25,9 @@ set -e
25 25
 # but really, they shouldn't. We want to be in a container!
26 26
 RESOLVCONF=$(readlink --canonicalize /etc/resolv.conf)
27 27
 grep -q "$RESOLVCONF" /proc/mounts || {
28
-	echo "# I will only run within a container."
29
-	echo "# Try this instead:"
30
-	echo "docker build ."
31
-	exit 1
28
+	echo "# WARNING! I don't seem to be running in a docker container.
29
+	echo "# The result of this command might be an incorrect build, and will not be officially supported."
30
+	echo "# Try this: 'docker build -t docker . && docker run docker ./hack/make.sh'
32 31
 }
33 32
 
34 33
 # List of bundles to create when no argument is passed