diff --git a/update.sh b/update.sh index fd06c43..6d6db34 100755 --- a/update.sh +++ b/update.sh @@ -98,12 +98,12 @@ for FILE in $(ls -1 roa/{bird*.conf,export*.json,README.md} | sed -e 's_roa/__g' done # Commit latest version of ROA files -git -C roa/ add README.md *.conf *.json *.sha256 +git -C roa/ add README.md "*.conf" "*.json" "*.sha256" git -C roa/ commit -m "Updated ROA files - $ISO_DATE" --quiet -# Push ROA repository to every remote configured -if [ $(git -C roa/ remote | grep -vi upstream | wc -l) > 0 ] ; then - for REMOTE in $(git -C roa/ remote | grep -vi upstream | paste -sd " " -) ; do +# Push ROA repository to every remote configured, except github +if [ $(git -C roa/ remote | grep -viP '(github|upstream)' | wc -l) > 0 ] ; then + for REMOTE in $(git -C roa/ remote | grep -vi github | paste -sd " " -) ; do git -C roa/ push $REMOTE master:master --quiet done fi