Skip to content

Commit a8fc637

Browse files
authored
Update install_scripts.sh
1 parent 4ca595f commit a8fc637

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

install_scripts.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ sed_update_if_changed() {
5757
if ! diff -q "$file" "$tmp_file" > /dev/null; then
5858
# Use cat to retain existing permissions, set umask to world readable in case the target file does not yet exist.
5959
(umask 022 && cat "$tmp_file" > "$file")
60-
else
61-
rm -f "$tmp_file"
6260
fi
61+
# Remove the temporary file
62+
rm -f "$tmp_file"
6363
}
6464

6565
compare_and_copy() {

0 commit comments

Comments
 (0)