dn42-roagen/update.sh

11 lines
341 B
Bash
Raw Normal View History

#!/bin/bash
ISO_DATE=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
# Commit latest version of dn42-rpki-export.json
git add dn42-rpki-export.json
git commit dn42-rpki-export.json -m "Updated dn42-rpki-export.json - $ISO_DATE"
# Push repository to every remote configured
for REMOTE in $(git remote | paste -sd " " -) ; do git ps $REMOTE master ; done