MCPcopy Create free account
hub / github.com/cronitorio/cronitor-cli / makeCronLikeEnv

Function makeCronLikeEnv

cmd/exec.go:270–277  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

268}
269
270func 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
279func makeSubcommandExec(subcommand string) *exec.Cmd {
280 var execCmd *exec.Cmd

Callers 2

RunCommandFunction · 0.85
handleRunJobFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected