mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-25 20:34:52 +03:00
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}"
|
||||
done
|
||||
|
||||
if [ -e "$output" ]; then chmod +w "$output".tmp; fi
|
||||
if [ -e "$output" ]; then chmod +w "$output"; fi
|
||||
printf "%s" "$content" > "$output"
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user