stdenv: Substitute correctly chmods instead of .tmp which never exists

This commit is contained in:
William A. Kennington III 2015-03-26 15:44:54 -07:00
parent 8286f6cef3
commit afa998eb32

View File

@ -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"
}