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 4ca595f commit a8fc637Copy full SHA for a8fc637
install_scripts.sh
@@ -57,9 +57,9 @@ sed_update_if_changed() {
57
if ! diff -q "$file" "$tmp_file" > /dev/null; then
58
# 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
+ # Remove the temporary file
+ rm -f "$tmp_file"
63
}
64
65
compare_and_copy() {
0 commit comments