diff options
author | Ledmitz <smoothshifter@tuta.io> | 2023-01-04 14:21:52 -0400 |
---|---|---|
committer | Ledmitz <smoothshifter@tuta.io> | 2023-01-04 14:21:52 -0400 |
commit | d49a1ea9242876fb56d0d9627dbc3250d5fa31de (patch) | |
tree | 19ca8687d76272a72d07c0e664f504c84b7a20da | |
parent | 181fb71b1c6c4786f966c4ae73b22b1391b5c7e5 (diff) | |
download | tmw-cmp-update-Report_Same_Files.tar.gz tmw-cmp-update-Report_Same_Files.tar.bz2 tmw-cmp-update-Report_Same_Files.tar.xz tmw-cmp-update-Report_Same_Files.zip |
Reports when files match in standard outputHEADmasterReport_Same_Files
-rw-r--r-- | README.md | 3 | ||||
-rwxr-xr-x | tmw-cmp-update | 2 |
2 files changed, 4 insertions, 1 deletions
@@ -19,4 +19,5 @@ Ledmitz (2022) ## License Seems small to need a license. I'll pick a goofy named libre one later - +## Changes +* - 2022-01-04: Added echo line to report when files are omitted due to them being the same file diff --git a/tmw-cmp-update b/tmw-cmp-update index 011b704..2b92f10 100755 --- a/tmw-cmp-update +++ b/tmw-cmp-update @@ -46,6 +46,8 @@ for FILE in $(find "$TMW_DIR" -type f); do if [[ "$LOCAL_FILE" != '' ]]; then if [[ $(cmp "$FILE" "$LOCAL_FILE") != '' ]]; then cp -fv "$LOCAL_FILE" "$FILE" + else + echo "Omitting $PATHNAME: Files match" fi elif [[ "$LOCAL_FILE" == '' ]]; then #List files in tmw directory that are not in the local directory |