[Agent] [Executor] fix bugs

This commit is contained in:
zeaslity
2023-11-08 14:57:40 +08:00
parent ee1ed8c02b
commit ce108b2f4d
3 changed files with 16 additions and 2 deletions

View File

@@ -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