fix: exit 0 when gracefully shutting down (#5555)

This commit is contained in:
Henrique Dias authored and GitHub committed 2025-11-16 14:13:21 +01:00
1 parent d01493106d
commit 5de4099cba
4 files changed
+2 -70

No files matched your search

+1 -2
View File
@@ -4,11 +4,10 @@ import (
"os"
"github.com/filebrowser/filebrowser/v2/cmd"
"github.com/filebrowser/filebrowser/v2/errors"
)
func main() {
if err := cmd.Execute(); err != nil {
os.Exit(errors.GetExitCode(err))
os.Exit(1)
}
}