Explorar o código

Merge pull request #2922 from ThomasWaldmann/fix-serve-exitcode-1.0

fix exitcode of borg serve, fixes #2910
TW %!s(int64=7) %!d(string=hai) anos
pai
achega
1d8d1d8e8f
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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):