Skip to content

Commit

Permalink
Merge branch 'main' into renovate/golangci-golangci-lint-action-3.x
Browse files Browse the repository at this point in the history
  • Loading branch information
jackwotherspoon committed Jun 7, 2023
2 parents 56e44be + 17e66a7 commit b07950d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions main_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,16 +111,15 @@ func main() {
inService, err := svc.IsWindowsService()
if err != nil {
os.Exit(99) // failed to determine service status
return
}

// running as service?
if inService {
err := svc.Run("cloud-sql-proxy", &windowsService{})
if err != nil {
os.Exit(100) // failed to execute service
return
}
return
}

// run as commandline
Expand Down

0 comments on commit b07950d

Please sign in to comment.