diff --git a/helper b/helper index ae1d9e7..3752c9b 100644 --- a/helper +++ b/helper @@ -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 } #