1
0
Fork 0

Ensure *.ext is quoted in git add operation

This commit is contained in:
netravnen 2023-07-30 12:21:30 +00:00
parent 9a5f9e6a52
commit f8d989485a
1 changed files with 4 additions and 4 deletions

View File

@ -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