stdenv: Substitute correctly chmods instead of .tmp which never exists
This commit is contained in:
@@ -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"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user