Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions run
Original file line number Diff line number Diff line change
Expand Up @@ -51,20 +51,20 @@ function clone-repos {
#@ Clone any missing repositories
#@ Category: Repository Management
echo "πŸ”„ Checking repositories..."

local cloned=0
local skipped=0

for repo in "${!REPOS[@]}"; do
if [ -d "$repo" ]; then
echo "⏭️ $repo (already exists)"
((skipped++))
((++skipped))

else
read -r url branch <<< "${REPOS[$repo]}"
echo "πŸ“₯ Cloning $repo (branch: $branch)..."
if git clone -b "$branch" "$url" "$repo"; then
echo "βœ… $repo cloned successfully"
((cloned++))
((++cloned))
else
echo "❌ Failed to clone $repo"
return 1
Expand All @@ -88,7 +88,7 @@ function pull-all-main {
for repo in "${!REPOS[@]}"; do
if [ ! -d "$repo" ]; then
echo "⚠️ $repo (missing - run 'clone-repos' first)"
((missing++))
((++missing))
continue
fi

Expand All @@ -97,10 +97,10 @@ function pull-all-main {

if (cd "$repo" && git pull origin "$branch"); then
echo "βœ… $repo updated successfully"
((updated++))
((++updated))
else
echo "❌ Failed to update $repo"
((failed++))
((++failed))
fi
done

Expand Down