Commit 07f31c873f2f7b9594bbb47c223fd8cb6458f259

Authored by Perry Werneck
1 parent ddf79395
Exists in master and in 1 other branch develop

Updating sync script.

Showing 1 changed file with 12 additions and 4 deletions   Show diff stats
gitsync.sh
... ... @@ -8,17 +8,25 @@
8 8 #
9 9 # Setup:
10 10 #
11   -# git remote add https://github.com/PerryWerneck/pw3270-plugin-hllapi.git
  11 +# git remote add github https://github.com/PerryWerneck/lib3270.git
12 12 #
13 13 #
14 14  
15 15 git push
16 16  
17 17 git fetch origin
18   -git checkout master
19   -git merge origin/master
  18 +git merge
20 19  
21   -for repo in $(git remote -v | grep -v origin | grep "(push)" | awk '{print $1}')
  20 +REPOS=$(git remote -v | grep -v origin | grep "(push)" | awk '{print $1}')
  21 +
  22 +for repo in ${REPOS}
  23 +do
  24 + echo "Getting updates from ${repo} ..."
  25 + git fetch ${repo}
  26 + git merge
  27 +done
  28 +
  29 +for repo in ${REPOS}
22 30 do
23 31 echo "Updating ${repo} ..."
24 32 git push ${repo}
... ...