DEV: Raise an error when env variable is a YAML hash (#479)
authorDavid Taylor <david@taylorhq.com>
Wed, 5 Aug 2020 16:25:17 +0000 (17:25 +0100)
committerGitHub <noreply@github.com>
Wed, 5 Aug 2020 16:25:17 +0000 (17:25 +0100)
This is never intended, and almost always causes unintended behaviour

launcher

index fd4b4ece8015dba03457687f48502a2677265407..29d63b397b2bc885dfa92ba6f235ea40ef12a453 100755 (executable)
--- a/launcher
+++ b/launcher
@@ -358,6 +358,7 @@ set_template_info() {
         p e
        end
     end
+    env.each{|k,v| puts "*ERROR." if v.is_a?(Hash)}
     puts env.map{|k,v| "-e\n#{k}=#{v}" }.join("\n")
 RUBY