mirror of
https://github.com/go-task/task.git
synced 2025-11-29 22:48:03 +02:00
Few code improvements on #216
This commit is contained in:
4
task.go
4
task.go
@@ -357,7 +357,9 @@ func getEnviron(t *taskfile.Task) []string {
|
||||
|
||||
environ := os.Environ()
|
||||
for k, v := range t.Env.ToCacheMap() {
|
||||
environ = append(environ, fmt.Sprintf("%s=%s", k, v))
|
||||
if s, ok := v.(string); ok {
|
||||
environ = append(environ, fmt.Sprintf("%s=%s", k, s))
|
||||
}
|
||||
}
|
||||
return environ
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user