From: Mark Wooding Date: Tue, 28 May 2024 18:35:28 +0000 (+0100) Subject: cycle: Print a diff of the changes, if there are any. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/dvddb/commitdiff_plain/11ec36c183badd178ae44997fbff5eaee3638eb2?ds=inline cycle: Print a diff of the changes, if there are any. --- diff --git a/cycle b/cycle index 6f4a177..43f561d 100755 --- a/cycle +++ b/cycle @@ -2,5 +2,5 @@ ./update PATHS ./report >PATHS.new -if cmp -s PATHS.new PATHS; then rm PATHS.new +if diff -u PATHS.new PATHS; then rm PATHS.new else mv PATHS.new PATHS; fi