From f8d989485a6fd03de2f59b4455eaa6d18890d0a4 Mon Sep 17 00:00:00 2001 From: Chriztoffer Date: Sun, 30 Jul 2023 12:21:30 +0000 Subject: [PATCH] Ensure *.ext is quoted in git add operation --- update.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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