This commit is contained in:
Kevin Wan
2021-08-19 22:48:21 +08:00
committed by GitHub
parent 189721da16
commit bf3ce16823
4 changed files with 33 additions and 4 deletions

View File

@@ -70,7 +70,7 @@ func TestCanExec(t *testing.T) {
assert.Equal(t, canExec, CanExec())
}
func execCommand(cmd string, arg ...string) (stdout string, stderr string, err error) {
func execCommand(cmd string, arg ...string) (stdout, stderr string, err error) {
output := bytes.NewBuffer(nil)
errOutput := bytes.NewBuffer(nil)
c := exec.Command(cmd, arg...)