1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-11-05 02:29:06 -08:00

don't spit out git status when there's nothing to do

This commit is contained in:
Connor Olding 2024-07-29 17:52:22 -07:00
parent 13c5e3ff21
commit 0ca819ffc4

View file

@ -76,6 +76,10 @@ else
if [ "$1" = commit ]; then
mv README.md~ README.md || die 'failed to overwrite readme'
if ! git diff --no-patch --exit-code README.md; then
git commit README.md -m 'regenerate readme' || die 'failed to commit'
else
warn 'nothing to do'
fi
fi
fi