Commit 8a34f6c1 authored by Raymond Toy's avatar Raymond Toy
Browse files

Test for directory or file (because that's what -e does).

parent d26f8433
......@@ -81,7 +81,7 @@ esac
diag "Settings: bld_dir=$bld_dir lisp_variant=$lisp_variant ${motif_variant:+motif_variant=$motif_variant}"
# Create a directory tree that mirrors the source directory tree
[ -d "$bld_dir" ] && quit "Exists: `ls -ld $bld_dir`"
[ -d "$bld_dir" -o -f "$bld_dir" ] && quit "Exists: `ls -ld $bld_dir`"
mkdir -p "$bld_dir"
(cd src && find . -name .git -prune -o -type d -print) | (cd $bld_dir && xargs mkdir -p) ||
quit "Can't create target directories"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment