From c1e0512c9f57c65db5f8aa5b993f5d98e34575e2 Mon Sep 17 00:00:00 2001 From: Pete Date: Mon, 2 Sep 2024 18:10:27 +0100 Subject: [PATCH] cd to SRCDIR/branchdir before handling manifests" --- src/new_build.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/new_build.sh b/src/new_build.sh index 69792d3..192b331 100755 --- a/src/new_build.sh +++ b/src/new_build.sh @@ -138,6 +138,9 @@ fi branch_dir=${branch//[^[:alnum:]]/_} branch_dir=${branch_dir^^} +mkdir -p "$SRC_DIR/$branch_dir" +cd "$SRC_DIR/$branch_dir" + if [ -n "$branch" ] && [ -n "$devices" ]; then case "$branch" in lineage-21.0*) @@ -150,9 +153,6 @@ if [ -n "$branch" ] && [ -n "$devices" ]; then ;; esac android_version_major=$(cut -d '.' -f 1 <<< $android_version) - - mkdir -p "$SRC_DIR/$branch_dir" - cd "$SRC_DIR/$branch_dir" fi # Handle local manifests