diff options
author | midipix <writeonce@midipix.org> | 2020-01-09 07:45:56 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2020-01-09 07:49:46 +0000 |
commit | 4d92f74b79d630e52f57ba505d585205840f250b (patch) | |
tree | e81a0ec43f6e59b5715a26fac23b209ba4762629 /configure | |
parent | 3064255a31cb777c38eebfa169c8e0606df101cb (diff) | |
download | apimagic-4d92f74b79d630e52f57ba505d585205840f250b.tar.bz2 apimagic-4d92f74b79d630e52f57ba505d585205840f250b.tar.xz |
build system: configure: verify_source_directory(): disallow spaces in path.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -288,6 +288,13 @@ verify_source_directory() { output_step_prolog ${mb_script} 'verify_source_directory' + if [ _"$mb_source_dir" != _${mb_source_dir##* } ]; then + error_msg "source directory path contains spaces, aborting." + exit 1 + fi + + eval mb_source_dir=$(printf '%s' "$mb_source_dir") + if [ -z "$mb_source_dir" ]; then if [ _$mb_require_source_dir = _yes ]; then error_msg "$mb_package: specifying an external source directory is required." |