[Agent] [Executor] fix bugs
This commit is contained in:
@@ -15,7 +15,7 @@ func BasicCommandExists(commandName string) bool {
|
||||
cmd := exec.Command("command", "-v", commandName)
|
||||
err := cmd.Run()
|
||||
if err != nil {
|
||||
log.DebugF("指令 %s 不存在", commandName)
|
||||
log.DebugF("指令 %s 不存在 => %s", commandName, err.Error())
|
||||
return false
|
||||
} else {
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user