summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools.go b/tools.go
index f36e240..fddbffe 100644
--- a/tools.go
+++ b/tools.go
@@ -684,6 +684,12 @@ func executeCommand(args map[string]string) []byte {
return []byte(msg)
}
+ // Check if output is empty and return success message
+ if len(output) == 0 {
+ successMsg := fmt.Sprintf("command '%s %s' executed successfully and exited with code 0", command, strings.Join(cmdArgs, " "))
+ return []byte(successMsg)
+ }
+
return output
}