mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-07-14 07:35:23 +00:00
Merge pull request #1819 from vaijab/fix_exec_panic
Fix exec panic when missing variables
This commit is contained in:
commit
871f5366b5
@ -15,6 +15,11 @@ import (
|
|||||||
func argsToEnv(from map[string]interface{}, to map[string]string) error {
|
func argsToEnv(from map[string]interface{}, to map[string]string) error {
|
||||||
|
|
||||||
for k, v := range from {
|
for k, v := range from {
|
||||||
|
if v == nil {
|
||||||
|
to[k] = ""
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
t := reflect.TypeOf(v)
|
t := reflect.TypeOf(v)
|
||||||
vv := reflect.ValueOf(v)
|
vv := reflect.ValueOf(v)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user