You've already forked bash-helper
logic changes
This commit is contained in:
6
helper
6
helper
@@ -228,8 +228,12 @@ git_clone_if_missing() {
|
|||||||
local target_dir="$2"
|
local target_dir="$2"
|
||||||
|
|
||||||
[[ -d "$target_dir/.git" ]] && return
|
[[ -d "$target_dir/.git" ]] && return
|
||||||
|
|
||||||
echo "Cloning repository $repo into $target_dir..."
|
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
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
|
Reference in New Issue
Block a user