1
0
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:
Andrey Nering
2019-09-14 17:54:41 -03:00
parent 884cd0d636
commit 1a28e5e0d4
11 changed files with 74 additions and 47 deletions

View File

@@ -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
}