summaryrefslogtreecommitdiff
path: root/util/abuild
diff options
context:
space:
mode:
Diffstat (limited to 'util/abuild')
-rwxr-xr-xutil/abuild/abuild9
1 files changed, 7 insertions, 2 deletions
diff --git a/util/abuild/abuild b/util/abuild/abuild
index b816d3f626..03be0d412e 100755
--- a/util/abuild/abuild
+++ b/util/abuild/abuild
@@ -746,13 +746,18 @@ if [ -z "$TARGET" ] || [ "$TARGET" = "/" ]; then
exit 1
fi
+if ! mkdir -p "$TARGET"; then
+ echo "Unable to create build directory"
+ exit 1
+fi
+
customizing=$(echo "$customizing" | cut -c3-)
if [ "$customizing" = "" ]; then
customizing="default configuration"
fi
-FAILED_BOARDS="${TARGET}/failed_boards"
-PASSED_BOARDS="${TARGET}/passing_boards"
+FAILED_BOARDS="$(realpath ${TARGET}/failed_boards)"
+PASSED_BOARDS="$(realpath ${TARGET}/passing_boards)"
if [ "$recursive" = "false" ]; then
rm -f "$FAILED_BOARDS" "$PASSED_BOARDS"