Skip to content

Commit b8c6600

Browse files
committed
Use diff rather than cmp
1 parent 2a28780 commit b8c6600

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

install_scripts.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ sed_update_if_changed() {
5454
return 1
5555
}
5656

57-
if ! cmp -s "$file" "$tmp_file"; then
57+
if ! diff -q "$file" "$tmp_file" > /dev/null; then
5858
mv "$tmp_file" "$file"
5959
else
6060
rm -f "$tmp_file"

0 commit comments

Comments
 (0)