From: Sam Saffron Date: Wed, 15 Jan 2014 22:49:39 +0000 (-0800) Subject: BUGFIX: add quoting for env vars X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=1d6b87d1701427874f50bc8e18a1a9284e48b807;p=discourse_docker.git BUGFIX: add quoting for env vars --- diff --git a/launcher b/launcher index 7b107a1..d35ab09 100755 --- a/launcher +++ b/launcher @@ -88,7 +88,7 @@ set_template_info() { p e end end - puts env.map{|k,v| "-e #{k}=#{v}" }.join(" ") + puts env.map{|k,v| "-e #{k}='#{v}'" }.join(" ") RUBY env=`exec echo "$input" | docker run -rm -i -a stdin -a stdout $image ruby -e "$env_ruby"`