(command string)
| 193 | } |
| 194 | |
| 195 | func execCommand(command string) { |
| 196 | output, err := exec.Command("sh", "-c", command).Output() |
| 197 | log.Info("Running: %s", command) |
| 198 | outputStr := string(output[:]) |
| 199 | if outputStr != "" { |
| 200 | log.Info("Output: %s", outputStr) |
| 201 | } |
| 202 | if err != nil { |
| 203 | log.Error("Error: %s %s", err, output) |
| 204 | } |
| 205 | } |
no test coverage detected