remove debug stuff
This commit is contained in:
parent
ad63e15564
commit
2a59a80b11
3 changed files with 1 additions and 11 deletions
|
@ -44,8 +44,6 @@ func Which(cmd string, options BasicOptions) (dir string, err error) {
|
|||
}
|
||||
}
|
||||
|
||||
fmt.Println(string(outputBytes))
|
||||
|
||||
return strings.Trim(string(outputBytes), "\n"), nil
|
||||
|
||||
}
|
||||
|
|
|
@ -106,8 +106,6 @@ func (cmd *LinuxCommand) Run() error {
|
|||
}
|
||||
}
|
||||
|
||||
fmt.Println(command.String())
|
||||
|
||||
if err := command.Start(); err != nil {
|
||||
var exitErr *exec.ExitError
|
||||
if errors.As(err, &exitErr) {
|
||||
|
|
|
@ -12,8 +12,6 @@ import (
|
|||
|
||||
func (cmd *LinuxCommand) isCommandExecutable(command string) (bool, error) {
|
||||
|
||||
fmt.Println(command)
|
||||
|
||||
whichOut, err := cmd2.Which(command, cmd2.BasicOptions{
|
||||
Env: cmd.Options.Env,
|
||||
Sources: cmd.Options.Sources,
|
||||
|
@ -29,14 +27,10 @@ func (cmd *LinuxCommand) isCommandExecutable(command string) (bool, error) {
|
|||
}
|
||||
}
|
||||
|
||||
fmt.Println(whichOut)
|
||||
|
||||
if len(whichOut) == 0 {
|
||||
return false, nil
|
||||
}
|
||||
|
||||
fmt.Println("which:", whichOut)
|
||||
|
||||
|
||||
if err := unix.Access(whichOut, unix.X_OK); err != nil {
|
||||
if err == unix.EACCES {
|
||||
return false, nil
|
||||
|
|
Loading…
Reference in a new issue