deploy adjustment

This commit is contained in:
mr
2025-06-16 09:14:36 +02:00
parent 90cc774341
commit 140bd63559
6 changed files with 36 additions and 34 deletions

View File

@@ -29,19 +29,17 @@ clone_repo() {
exit 1
fi
fi
echo "Check in $branche & pull"
ls
echo "Repository '$repo_name' already exists. Pulling latest changes..."
cd "$repo_name" && git checkout $branche && git pull && cd ..
cd "$repo_name" && git checkout $branche && git pull
cd ..
}
cd ..
# Iterate through each repository in the list
branche = "main"
if [ -n "$1" ]; then
branche = $1
fi
for repo in "${REPOS[@]}"; do
clone_repo $repo $branche
clone_repo $repo ${1:-main}
done
echo "All repositories processed successfully."