Skip to content

Commit bbc313e

Browse files
authored
Merge pull request #1053 from utmstack/bugfix/correlation_engine/v10
Refactor `RunCommand` to separate command name and arguments
2 parents 5b89cca + e260be8 commit bbc313e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

correlation/utils/os.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55
"os/exec"
66
)
77

8-
func RunCommand(command ...string) error {
9-
cmd := exec.Command(command[0], command[1:]...)
8+
func RunCommand(name string, args ...string) error {
9+
cmd := exec.Command(name, args...)
1010

1111
cmd.Stderr = os.Stderr
1212
cmd.Stdout = os.Stdout

0 commit comments

Comments
 (0)