update_metadata: continue if there are no updates to commit.

This commit is contained in:
Michael Marineau 2014-06-20 17:28:45 -07:00
parent bf9795c976
commit 03b7156e84

View File

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