stdenv: Fix handling spaces in 'substitute'

This commit is contained in:
Nikolay Amiantov 2014-10-09 23:13:08 +04:00 committed by Bjørn Forsman
parent d59327b938
commit 2ec4704961

View File

@ -339,7 +339,7 @@ substitute() {
local n p pattern replacement varName content local n p pattern replacement varName content
# a slightly hacky way to keep newline at the end # a slightly hacky way to keep newline at the end
content="$(cat $input; echo -n X)" content="$(cat "$input"; echo -n X)"
content="${content%X}" content="${content%X}"
for ((n = 2; n < ${#params[*]}; n += 1)); do for ((n = 2; n < ${#params[*]}; n += 1)); do