From 511b275ec41dedf5cc3298a6287dce05ace8188b Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Thu, 21 Mar 2019 11:11:26 -0400 Subject: [PATCH] Handle numbers in env more gracefully --- worker/tasks.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/worker/tasks.go b/worker/tasks.go index 353a962..cca7080 100644 --- a/worker/tasks.go +++ b/worker/tasks.go @@ -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 { -- 2.38.5