From 34d2a675e6eac967073bdcf0fbb516ca4fe83564 Mon Sep 17 00:00:00 2001 From: Pete Fotheringham Date: Fri, 11 Oct 2024 22:27:51 +0100 Subject: [PATCH] Set source_dir earlier --- src/new_build.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/new_build.sh b/src/new_build.sh index 4a4d43a..781a36c 100755 --- a/src/new_build.sh +++ b/src/new_build.sh @@ -160,7 +160,8 @@ fi branch_dir=${branch//[^[:alnum:]]/_} branch_dir=${branch_dir^^} -mkdir -p "$SRC_DIR/$branch_dir" +source_dir="$SRC_DIR/$branch_dir" +mkdir -p "$source_dir" cd "$SRC_DIR/$branch_dir" if [ -n "$branch" ] && [ -n "$devices" ]; then