chore(*): update command error type

Signed-off-by: storyicon <yuanchao@bilibili.com>
This commit is contained in:
storyicon 2021-07-22 20:41:06 +08:00
parent a4d4c459ba
commit 1c73b92f0f
No known key found for this signature in database
GPG key ID: 245915D985F966CF
5 changed files with 9 additions and 9 deletions

View file

@ -29,7 +29,7 @@ import (
// Execute is used to execute commands, return stdout and execute errors
func Execute(ctx context.Context,
log logger.Logger,
dir string, name string, arguments []string, env []string) ([]byte, *ErrCommandExec) {
dir string, name string, arguments []string, env []string) ([]byte, error) {
cmd := exec.CommandContext(ctx, name, arguments...)
cmd.Env = append(os.Environ(), env...)
cmd.Dir = dir