christianspecht / scm-backup

Makes offline backups of your cloud hosted source code repositories
https://scm-backup.org/
GNU General Public License v3.0
58 stars 20 forks source link

Set process exit code to 0 on success, 1 on failure #54

Closed nzbart closed 4 years ago

nzbart commented 4 years ago

As discussed in #53, we want to return an exit code from the process so that scripts know if the backup completed successfully or not.

Hopefully this lays the groundwork for #47 as well.

Note that I've broken the commits into - hopefully - understandable chunks.

In addition to running the automated tests that don't require authentication, I have manually tested the return code on Debian Linux. I have no reason to believe it wouldn't work on Windows as well.

christianspecht commented 4 years ago

Thanks, looks good!

BTW, all the automated tests on Windows have been executed anyway at the moment when you created your pull request.