From 0138494b64b1065c075e6d9e9f8408cd61620335 Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Wed, 23 Jan 2019 13:49:06 +0800 Subject: [PATCH] Fix extra spaces appearing in ENV. 7a092241d1ee2b515a652ad71a134162a6f05cde --- launcher | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/launcher b/launcher index 5fb068a..f68e42b 100755 --- a/launcher +++ b/launcher @@ -337,7 +337,7 @@ set_template_info() { p e end end - puts env.map{|k,v| "-e #{k}=#{v}" }.join("\n") + puts env.map{|k,v| "-e\n#{k}=#{v}" }.join("\n") RUBY tmp_input_file=$(mktemp) @@ -353,7 +353,7 @@ RUBY if [ "$i" == "*ERROR." ]; then ok=0 elif [ -n "$i" ]; then - env[${#env[@]}]=$(echo "$i" | sed s/{{config}}/${config}/g) + env[${#env[@]}]="${i//\{\{config\}\}/${config}}" fi done <<< "$raw" -- 2.25.1