commit a9a6a2195e5672e086c693c5c73436c3f27ee696
parent 815cc8180d03306100e834c1b4a8ac5dadb8bdf2
Author: Sebastian <sebastian@sebsite.pw>
Date: Sat, 22 Jan 2022 23:41:30 -0500
config.sh: Quote "$outdir"
The directory in which harec is built may have a space in it. This
commit quotes all instances of $outdir to prevent expansion.
Signed-off-by: Sebastian <sebastian@sebsite.pw>
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/config.sh b/config.sh
@@ -118,7 +118,7 @@ find_library() {
docs() { true; }
run_configure() {
- mkdir -p $outdir
+ mkdir -p "$outdir"
for flag in -g -std=c11 -D_XOPEN_SOURCE=700 \
-Wall -Wextra -Werror -pedantic \
@@ -189,7 +189,7 @@ run_configure() {
done
echo done
- touch $outdir/cppcache
+ touch "$outdir"/cppcache
cat <<-EOF >harec.sh
export PATH=\$PATH:"$(pwd)"