diff options
author | Chris Lamb <chris@chris-lamb.co.uk> | 2008-07-10 05:13:57 +0100 |
---|---|---|
committer | Chris Lamb <chris@chris-lamb.co.uk> | 2008-07-10 05:13:57 +0100 |
commit | 04841d46ad68c9bac65502f79280d108bdba3e2f (patch) | |
tree | b67220b58fe19cd3d0b911f4d66e84434a81055c /helpers | |
parent | 78d346e90c7d9e1bdf8677af1724215bb01b498a (diff) | |
download | vyos-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')
-rwxr-xr-x | helpers/lh_build | 6 |
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 ${*} |