From 0d1ab290178d113bd1ee808fb57b41b756ae0605 Mon Sep 17 00:00:00 2001 From: davidovski Date: Mon, 23 May 2022 19:45:42 +0100 Subject: removed making extra directories --- xibuild.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'xibuild.sh') diff --git a/xibuild.sh b/xibuild.sh index 61df4e7..b0ba56b 100644 --- a/xibuild.sh +++ b/xibuild.sh @@ -262,7 +262,8 @@ $doclean && tasks="$tasks clean" } } -[ -f "$logfile" ] && logfile="$out_dir/build.log" +[ "${#logfile}" = "0" ] && logfile="$out_dir/build.log" +[ -d "${logfile%/*}" ] || mkdir -p "${logfile%/*}" NAME=$(basename $(realpath "$src_dir")) -- cgit v1.2.1