Browse Source

fix exitcode of borg serve, fixes #2910

(cherry picked from commit 583de3eeb15ba9f1c5574691eb42a9d10270a5a9)
Thomas Waldmann 7 năm trước cách đây
mục cha
commit
3a7f0fea69
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      borg/archiver.py

+ 2 - 1
borg/archiver.py

@@ -141,7 +141,8 @@ class Archiver:
     def do_serve(self, args):
         """Start in server mode. This command is usually not used manually.
         """
-        return RepositoryServer(restrict_to_paths=args.restrict_to_paths, append_only=args.append_only).serve()
+        RepositoryServer(restrict_to_paths=args.restrict_to_paths, append_only=args.append_only).serve()
+        return EXIT_SUCCESS
 
     @with_repository(create=True, exclusive=True, manifest=False)
     def do_init(self, args, repository):