()
| 268 | } |
| 269 | |
| 270 | func makeCronLikeEnv() []string { |
| 271 | env := []string{"SHELL=/bin/sh"} |
| 272 | if homeValue, hasHome := os.LookupEnv("HOME"); hasHome { |
| 273 | env = append(env, "HOME="+homeValue) |
| 274 | } |
| 275 | |
| 276 | return env |
| 277 | } |
| 278 | |
| 279 | func makeSubcommandExec(subcommand string) *exec.Cmd { |
| 280 | var execCmd *exec.Cmd |
no outgoing calls
no test coverage detected