From 5f23114cab98f4d0b2cdef0e8e64a5195306092c Mon Sep 17 00:00:00 2001 From: Matthias Viehweger Date: Tue, 16 Oct 2018 18:14:03 +0200 Subject: [PATCH] Accept a locally existing build-directory (#1476) A message is emitted and there the '--force' is still honored. However, if people want to reuse the build-directory to reduce recompile-times, this give them the rope they ask for. --- build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index d2834630..e6787621 100755 --- a/build.sh +++ b/build.sh @@ -178,11 +178,11 @@ main() { msg "Removing existing build dir (-f)" rm -rf ./build >/dev/null || msg_err "Failed to remove existing build dir" else - msg_err "A build dir already exists (pass -f to replace)" + msg "A build dir already exists (pass -f to replace)" fi } - mkdir ./build || msg_err "Failed to create build dir" + mkdir -p ./build || msg_err "Failed to create build dir" cd ./build || msg_err "Failed to enter build dir" set_build_opts