diff --git a/base/cli/system.go b/base/cli/system.go index 4385e89f..abaf987d 100644 --- a/base/cli/system.go +++ b/base/cli/system.go @@ -113,24 +113,18 @@ func _system_code(cmd *exec.Cmd) string { return kit.Select("1", "0", cmd.ProcessState != nil && cmd.ProcessState.Success()) } func _system_find(m Message, bin string, dir ...string) string { - ice.Pulse.Debug("what %v %v", bin, dir) if strings.Contains(bin, ice.DF) { - ice.Pulse.Debug("what %v %v", bin, dir) return bin } if strings.HasPrefix(bin, ice.PS) { - ice.Pulse.Debug("what %v %v", bin, dir) return bin } if strings.HasPrefix(bin, nfs.PWD) { - ice.Pulse.Debug("what %v %v", bin, dir) return bin } if len(dir) == 0 { - ice.Pulse.Debug("what %v %v", bin, dir) dir = append(dir, _path_split(kit.Env(PATH))...) } - ice.Pulse.Debug("what %v %v", bin, dir) for _, p := range dir { if nfs.ExistsFile(m, path.Join(p, bin)) { return kit.Path(p, bin)