diff options
author | Chris Lamb <chris@chris-lamb.co.uk> | 2008-07-10 05:13:57 +0100 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 19:03:36 +0100 |
commit | dd074f1461708344299c32dbe996ca1fe33e9cec (patch) | |
tree | b67220b58fe19cd3d0b911f4d66e84434a81055c | |
parent | cb7809fc83cacb87cb8efa66f272fa3eda94390e (diff) | |
download | vyos-live-build-dd074f1461708344299c32dbe996ca1fe33e9cec.tar.gz vyos-live-build-dd074f1461708344299c32dbe996ca1fe33e9cec.zip |
Abort build if working directory contains spaces - not supported by (at least) debootstrap and cdebootstrap.
-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 ${*} |