Repo update failures should not fail the whole build

This commit is contained in:
adisbladis 2019-08-14 11:10:39 +01:00
parent d52a22e724
commit a54c109ff9
No known key found for this signature in database
GPG key ID: 110BFAD44C6249B7

3
update
View file

@ -1,6 +1,7 @@
#!/usr/bin/env bash
set -euo pipefail
for repo in repos/*; do
$repo/update && (git diff --exit-code $repo > /dev/null || git commit -m "Updated $repo" -- $repo)
done
exit 0