summaryrefslogtreecommitdiff
path: root/helpers/lh_build
diff options
context:
space:
mode:
authorChris Lamb <chris@chris-lamb.co.uk>2008-07-10 05:13:57 +0100
committerChris Lamb <chris@chris-lamb.co.uk>2008-07-10 05:13:57 +0100
commit04841d46ad68c9bac65502f79280d108bdba3e2f (patch)
treeb67220b58fe19cd3d0b911f4d66e84434a81055c /helpers/lh_build
parent78d346e90c7d9e1bdf8677af1724215bb01b498a (diff)
downloadvyos-live-build-04841d46ad68c9bac65502f79280d108bdba3e2f.tar.gz
vyos-live-build-04841d46ad68c9bac65502f79280d108bdba3e2f.zip
Abort build if working directory contains spaces - not supported by (at least) debootstrap and cdebootstrap.
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
Diffstat (limited to 'helpers/lh_build')
-rwxr-xr-xhelpers/lh_build6
1 files changed, 6 insertions, 0 deletions
diff --git a/helpers/lh_build b/helpers/lh_build
index 835a4b77f..8d3889064 100755
--- a/helpers/lh_build
+++ b/helpers/lh_build
@@ -35,6 +35,12 @@ then
exit 1
fi
+if echo $(pwd) | grep -qs " "
+then
+ Echo_error "Cannot build live image from a directory containing spaces"
+ exit 1
+fi
+
# Bootstrapping system
lh_bootstrap ${*}