~comcloudway/builds.sr.ht

511b275ec41dedf5cc3298a6287dce05ace8188b — Drew DeVault 5 years ago c7da973
Handle numbers in env more gracefully
1 files changed, 2 insertions(+), 0 deletions(-)

M worker/tasks.go
M worker/tasks.go => worker/tasks.go +2 -0
@@ 173,6 173,8 @@ export JOB_ID=%d
		switch v := value.(type) {
		case string:
			env += fmt.Sprintf("export %s=%s\n", key, v)
		case float64:
			env += fmt.Sprintf("export %s=%g\n", key, v)
		case []interface{}:
			env += key + "=("
			for i, _item := range v {