summaryrefslogtreecommitdiff
path: root/xibuild.sh
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-05-23 19:45:42 +0100
committerdavidovski <david@davidovski.xyz>2022-05-23 19:45:42 +0100
commit0d1ab290178d113bd1ee808fb57b41b756ae0605 (patch)
tree74469b981db64f6decca459216a166051c7192e2 /xibuild.sh
parentc21fa669e945bb6034019a6b76d2e6dc1114388d (diff)
removed making extra directoriesv1.1
Diffstat (limited to 'xibuild.sh')
-rw-r--r--xibuild.sh3
1 files changed, 2 insertions, 1 deletions
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"))