Sfoglia il codice sorgente

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

fix exitcode of borg serve, fixes #2910
TW 7 anni fa
parent
commit
1d8d1d8e8f
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  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):