summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLedmitz <smoothshifter@tuta.io>2023-01-04 14:21:52 -0400
committerLedmitz <smoothshifter@tuta.io>2023-01-04 14:21:52 -0400
commitd49a1ea9242876fb56d0d9627dbc3250d5fa31de (patch)
tree19ca8687d76272a72d07c0e664f504c84b7a20da
parent181fb71b1c6c4786f966c4ae73b22b1391b5c7e5 (diff)
downloadtmw-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.md3
-rwxr-xr-xtmw-cmp-update2
2 files changed, 4 insertions, 1 deletions
diff --git a/README.md b/README.md
index ccbf03c..c37506e 100644
--- a/README.md
+++ b/README.md
@@ -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