We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0afa994 commit 4ca595fCopy full SHA for 4ca595f
install_scripts.sh
@@ -55,7 +55,8 @@ sed_update_if_changed() {
55
}
56
57
if ! diff -q "$file" "$tmp_file" > /dev/null; then
58
- mv "$tmp_file" "$file"
+ # Use cat to retain existing permissions, set umask to world readable in case the target file does not yet exist.
59
+ (umask 022 && cat "$tmp_file" > "$file")
60
else
61
rm -f "$tmp_file"
62
fi
0 commit comments