From bdf30576339376a9cf483e72a93d59faffc3d893 Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Sun, 10 Mar 2024 22:19:13 +0100 Subject: [PATCH] Fix reusing clone dir (2nd try) --- buildtool.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/buildtool.sh b/buildtool.sh index b414075..706a008 100755 --- a/buildtool.sh +++ b/buildtool.sh @@ -348,8 +348,12 @@ case "${BUILDTOOL_CPUPOWER}" in esac # Clone repository -infoh "Cloning repository" -git clone "${BUILDTOOL_REPOSITORY}" "${BUILDTOOL_CLONEDIR}" +if [ "${BUILDTOOL_CLONEDIR_CONFLICT}" == "r" ] || [ "${BUILDTOOL_CLONEDIR_CONFLICT}" == "R" ]; then + warnh "Skipping cloning process" +else + infoh "Cloning repository" + git clone "${BUILDTOOL_REPOSITORY}" "${BUILDTOOL_CLONEDIR}" +fi cd "${BUILDTOOL_CLONEDIR}" # Print debug information