dn42-roagen/update.sh
netravnen e7405a7d80 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.
2019-01-04 09:34:24 +00:00

11 lines
314 B
Bash
Executable file

#!/bin/bash
ISO_DATE=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
# Commit latest version of ROA files
git add roa/*
git commit roa/* -m "Updated ROA files - $ISO_DATE"
# Push repository to every remote configured
for REMOTE in $(git remote | egrep -v upstream | paste -sd " " -) ; do git push $REMOTE master:master ; done