grim/convey

66fe4022bab0
Parents 7fa77263459f
Children 05dc050791ae
Going for an easy fix for the broken environment mapper
--- a/environment/mapper.go Tue Aug 07 00:02:19 2018 -0500
+++ b/environment/mapper.go Tue Aug 07 00:20:28 2018 -0500
@@ -55,8 +55,9 @@
// Map will return the value matching a KEY=VAL pair in the given environment.
func Map(key string, env []string) string {
- mapper := envMapper{env}
- return mapper.mapVariable(key)
+ val, _ := Mapper(key, env)
+
+ return val
}
// Mapper will replace ${TEMPLATE} patterns in the string with the KEY=VAL pairs