Skip to content

Commit

Permalink
ignore red-herring warning in "wrench svc start"
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Gutekanst <[email protected]>
  • Loading branch information
emidoots committed Dec 14, 2022
1 parent 50968f3 commit 0c937ce
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion service_start.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package main
import (
"flag"
"fmt"
"strings"

"github.com/hexops/cmder"
)
Expand All @@ -25,7 +26,11 @@ Examples:
_ = flagSet.Parse(args)

service, _ := newServiceBot()
return service.Start()
err := service.Start()
if err != nil && !strings.Contains(err.Error(), "Warning: Expecting a LaunchAgents path") {
return err
}
return nil
}

// Register the command.
Expand Down

0 comments on commit 0c937ce

Please sign in to comment.