From: David Taylor Date: Wed, 5 Aug 2020 16:25:17 +0000 (+0100) Subject: DEV: Raise an error when env variable is a YAML hash (#479) X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=09d22c3f3be448aa27f64404b3f3f1f5821e7a40;p=discourse_docker.git DEV: Raise an error when env variable is a YAML hash (#479) This is never intended, and almost always causes unintended behaviour --- diff --git a/launcher b/launcher index fd4b4ec..29d63b3 100755 --- 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