1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2025-02-04 18:21:06 +02:00

Fix exec panic when missing variables

Fixes #1810
This commit is contained in:
Vaidas Jablonskis 2016-10-17 21:43:41 +01:00
parent 2d90155d5a
commit f4f61cb57a

View File

@ -15,6 +15,11 @@ import (
func argsToEnv(from map[string]interface{}, to map[string]string) error {
for k, v := range from {
if v == nil {
to[k] = ""
continue
}
t := reflect.TypeOf(v)
vv := reflect.ValueOf(v)