Skip to content

Commit

Permalink
[BUGFIX] cannot exec -c if path to config file provided
Browse files Browse the repository at this point in the history
  • Loading branch information
marema31 committed Feb 25, 2019
1 parent 1ba1c84 commit e689d3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func main() {
}

fmt.Printf("Will run %s\n", strings.Join(os.Args[i:], " "))
cmd := exec.Command(os.Args[1], os.Args[2:]...)
cmd := exec.Command(os.Args[i], os.Args[i+1:]...)

stderr, err := cmd.StderrPipe()
if err != nil {
Expand Down

0 comments on commit e689d3f

Please sign in to comment.