Update update.sh

- Avoid pushing to branch named upstream.
- Push only from local master to remote master branch. Even if other branch is currently checked out.
This commit is contained in:
netravnen 2018-12-17 09:01:31 +00:00
parent ac1d498d98
commit e7405a7d80

View file

@ -7,4 +7,4 @@ git add roa/*
git commit roa/* -m "Updated ROA files - $ISO_DATE" git commit roa/* -m "Updated ROA files - $ISO_DATE"
# Push repository to every remote configured # Push repository to every remote configured
for REMOTE in $(git remote | paste -sd " " -) ; do git push $REMOTE master ; done for REMOTE in $(git remote | egrep -v upstream | paste -sd " " -) ; do git push $REMOTE master:master ; done