changeset 56:cce259fe3f35

non 0 return code on failure: - return 2 if files have not been copied - return 1 if file have been copied but errors occured
author Goffi <goffi@goffi.org>
date Mon, 20 Jun 2011 02:57:54 +0200
parents 98a879663e27
children d4f1235c860b
files gcp
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gcp	Mon Jun 20 01:27:31 2011 +0200
+++ b/gcp	Mon Jun 20 02:57:54 2011 +0200
@@ -682,4 +682,8 @@
         exit(1)
     if gcp._main_instance:
         gcp.go()
+        if gcp.journal.failed:
+            exit(2)
+        if gcp.journal.partial:
+            exit(1)