remove command check in runner

This commit is contained in:
Shane C 2024-07-04 16:44:26 -04:00
parent 5bb2d6d1b4
commit f9f879e7ee
Signed by: shane
GPG key ID: E46B5FEA35B22FF9

View file

@ -37,15 +37,6 @@ func (cmd *LinuxCommand) Run() error {
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 {
var exitErr *exec.ExitError
if errors.As(err, &exitErr) {