stdenv: Fix handling spaces in 'substitute'
This commit is contained in:
parent
d59327b938
commit
2ec4704961
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue