GODT-2111: Fix restart on macOS

This commit is contained in:
James Houlahan
2022-11-22 11:29:22 +01:00
committed by Leander Beernaert
parent 82788e39f0
commit f954f89747
2 changed files with 9 additions and 2 deletions

View File

@ -19,8 +19,10 @@ package main
import (
"os"
"strings"
"github.com/ProtonMail/proton-bridge/v2/internal/app"
"github.com/bradenaw/juniper/xslices"
"github.com/sirupsen/logrus"
)
@ -42,7 +44,7 @@ import (
*/
func main() {
if err := app.New().Run(os.Args); err != nil {
if err := app.New().Run(xslices.Filter(os.Args, func(arg string) bool { return !strings.Contains(arg, "-psn_") })); err != nil {
logrus.Fatal(err)
}
}