diff --git a/internal/executor/executor.go b/internal/executor/executor.go index 443ef06..4e54947 100644 --- a/internal/executor/executor.go +++ b/internal/executor/executor.go @@ -380,7 +380,14 @@ func buildEnv(req *ExecutionRequest) []string { ret := append(os.Environ(), "OLIVETIN=1") for k, v := range req.Arguments { - ret = append(ret, fmt.Sprintf("%v=%v", strings.ToUpper(k), v)) + varName := fmt.Sprintf("%v", strings.TrimSpace(strings.ToUpper(k))) + + // Skip arguments that might not have a name (eg, confirmation), as this causes weird bugs on Windows. + if varName == "" { + continue + } + + ret = append(ret, fmt.Sprintf("%v=%v", varName, v)) } return ret