You've already forked bash-helper
logic changes
This commit is contained in:
3
helper
3
helper
@@ -213,9 +213,8 @@ validate_input() {
|
||||
git_clone_if_missing() {
|
||||
local repo="$1"
|
||||
local target_dir="$2"
|
||||
local branch="${3:-main}"
|
||||
|
||||
[[ -d "$target_dir/.git" ]] && return
|
||||
echo "Cloning repository $repo into $target_dir..."
|
||||
git clone --quiet --branch "$branch" "$repo" "$target_dir"
|
||||
git clone --quiet --branch main "$repo" "$target_dir"
|
||||
}
|
||||
|
Reference in New Issue
Block a user