--- a/state/state.go Tue Oct 03 21:45:08 2017 -0500
+++ b/state/state.go Tue Oct 03 21:46:20 2017 -0500
@@ -252,3 +252,15 @@
+// getName returns the name of the variable `var` if the string is of the +func getName(env string) string { + env = strings.TrimSpace(env) + if strings.HasPrefix(env, "$") { + return strings.Trim(env[1:], "{}") \ No newline at end of file