summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"))