We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5b89cca + e260be8 commit bbc313eCopy full SHA for bbc313e
correlation/utils/os.go
@@ -5,8 +5,8 @@ import (
5
"os/exec"
6
)
7
8
-func RunCommand(command ...string) error {
9
- cmd := exec.Command(command[0], command[1:]...)
+func RunCommand(name string, args ...string) error {
+ cmd := exec.Command(name, args...)
10
11
cmd.Stderr = os.Stderr
12
cmd.Stdout = os.Stdout
0 commit comments