stdenv: Fix handling spaces in 'substitute'

This commit is contained in:
Nikolay Amiantov
2014-10-09 22:15:07 +02:00
committed by Bjørn Forsman
parent d59327b938
commit 2ec4704961
+1 -1
View File
@@ -339,7 +339,7 @@ substitute() {
local n p pattern replacement varName content
# 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}"
for ((n = 2; n < ${#params[*]}; n += 1)); do