logic changes

This commit is contained in:
2025-08-29 12:51:36 +02:00
parent e3a419885c
commit 7ba6755622

6
helper
View File

@@ -228,8 +228,12 @@ git_clone_if_missing() {
local target_dir="$2"
[[ -d "$target_dir/.git" ]] && return
echo "Cloning repository $repo into $target_dir..."
git clone --quiet --branch main "$repo" "$target_dir"
if ! git clone --quiet --branch main "$repo" "$target_dir"; then
echo "Error: Failed to clone repository $repo"
exit 1
fi
}
#