Fix reusing clone dir (2nd try)

This commit is contained in:
JeremyStar™ 2024-03-10 22:19:13 +01:00
parent 43696edbc8
commit bdf3057633

View file

@ -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