Skip to content

Commit

Permalink
fix bin path
Browse files Browse the repository at this point in the history
  • Loading branch information
morphy2k committed Nov 9, 2024
1 parent 5716409 commit 6dbc555
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,15 @@ import (
"strings"
)

const formatter = "ndjson"
const (
revivePath = "/revive"
formatter = "ndjson"
)

var version = ""

func runRevive(args []string) (*statistics, int, error) {
cmd := exec.Command("revive", args...)
cmd := exec.Command(revivePath, args...)

stdout, err := cmd.StdoutPipe()
if err != nil {
Expand Down Expand Up @@ -66,7 +69,7 @@ func runRevive(args []string) (*statistics, int, error) {
}

func getReviveVersion() (string, error) {
cmd := exec.Command("revive", "-version")
cmd := exec.Command(revivePath, "-version")

stdout, err := cmd.Output()
if err != nil {
Expand Down

0 comments on commit 6dbc555

Please sign in to comment.