diff options
-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 |