projects
/
discourse_docker.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a09224
)
Fix extra spaces appearing in ENV.
author
Guo Xiang Tan
<tgx_world@hotmail.com>
Wed, 23 Jan 2019 05:49:06 +0000
(13:49 +0800)
committer
Guo Xiang Tan
<tgx_world@hotmail.com>
Wed, 23 Jan 2019 05:49:06 +0000
(13:49 +0800)
7a092241d1ee2b515a652ad71a134162a6f05cde
launcher
patch
|
blob
|
blame
|
history
diff --git
a/launcher
b/launcher
index 5fb068ac1ddeb19e1e8f57eea9bf19e84f3c4957..f68e42b407db6c249dc4c3d5c069dfe58f88c6c5 100755
(executable)
--- 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"