non 0 return code on failure:

- return 2 if files have not been copied
- return 1 if file have been copied but errors occured
This commit is contained in:
Goffi 2011-06-20 02:57:54 +02:00
parent bee2cd541d
commit 4271439cab
1 changed files with 4 additions and 0 deletions

4
gcp
View File

@ -682,4 +682,8 @@ if __name__ == "__main__":
exit(1)
if gcp._main_instance:
gcp.go()
if gcp.journal.failed:
exit(2)
if gcp.journal.partial:
exit(1)