deploy adjustment
This commit is contained in:
@@ -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."
|
||||
|
||||
Reference in New Issue
Block a user