stdenv: Substitute correctly chmods instead of .tmp which never exists
This commit is contained in:
parent
8286f6cef3
commit
afa998eb32
@ -370,7 +370,7 @@ substitute() {
|
|||||||
content="${content//"$pattern"/$replacement}"
|
content="${content//"$pattern"/$replacement}"
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ -e "$output" ]; then chmod +w "$output".tmp; fi
|
if [ -e "$output" ]; then chmod +w "$output"; fi
|
||||||
printf "%s" "$content" > "$output"
|
printf "%s" "$content" > "$output"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user