OpenBagTwo / gsb

A tool for managing incremental backups of your save states using Git!
https://openbagtwo.github.io/gsb/
GNU General Public License v3.0
0 stars 0 forks source link

Add flag to gsb backup command to ignore "Nothing to commit" errors #55

Open OpenBagTwo opened 10 months ago

OpenBagTwo commented 10 months ago

GIVEN M.A.R.I.L.L.A is using GSB as part of an automated backup script

WHEN her script calls for the creation of a backup, but there are no changes to back up

THEN by passing a flag to gsb backup such as --exit-zero, that command should result in an exit code of zero

SO that her script can continue on without needing to implement something like set +e or || true which would also silence legitimate errors such as the save path not being found

Notes