mirror of
https://github.com/flatcar/scripts.git
synced 2026-05-04 19:56:32 +02:00
update_metadata: continue if there are no updates to commit.
This commit is contained in:
parent
bf9795c976
commit
03b7156e84
@ -29,6 +29,12 @@ update_overlay() {
|
||||
|
||||
pushd "${repo_path}" >/dev/null
|
||||
git add -A metadata/md5-cache
|
||||
|
||||
if git diff --quiet --cached; then
|
||||
info "Nothing to update in ${repo_name}"
|
||||
return 0
|
||||
fi
|
||||
|
||||
if [[ ${FLAGS_commit} -eq ${FLAGS_TRUE} ]]; then
|
||||
git commit -m "chore(metadata): Regenerate cache" metadata/md5-cache
|
||||
else
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user