remove command check in runner
This commit is contained in:
parent
5bb2d6d1b4
commit
f9f879e7ee
1 changed files with 0 additions and 9 deletions
|
@ -37,15 +37,6 @@ func (cmd *LinuxCommand) Run() error {
|
||||||
command.Env = append(command.Env, fmt.Sprintf("%s=%s", key, value))
|
command.Env = append(command.Env, fmt.Sprintf("%s=%s", key, value))
|
||||||
}
|
}
|
||||||
|
|
||||||
commandExists, err := cmd.doesCommandExist(cmd.Options.Command)
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
if !commandExists {
|
|
||||||
return ErrCommandNotFound
|
|
||||||
}
|
|
||||||
|
|
||||||
if err := command.Start(); err != nil {
|
if err := command.Start(); err != nil {
|
||||||
var exitErr *exec.ExitError
|
var exitErr *exec.ExitError
|
||||||
if errors.As(err, &exitErr) {
|
if errors.As(err, &exitErr) {
|
||||||
|
|
Loading…
Reference in a new issue