summaryrefslogtreecommitdiff
path: root/checkDiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-02-10 22:36:04 +0100
committerErich Eckner <git@eckner.net>2019-02-10 22:36:04 +0100
commit314ad8d94c5ff33fd2eadb1027748550be0e7e4f (patch)
treeb94d525ac5758380cbc8cbcc8bce8e5b68823697 /checkDiff
parent080efe8cbf8e5bc69a17f8af8f5feffd01dd67fe (diff)
downloadhardlinkedBackups-314ad8d94c5ff33fd2eadb1027748550be0e7e4f.tar.xz
camelCase -> no-camel-case, backup-progress new
Diffstat (limited to 'checkDiff')
-rwxr-xr-xcheckDiff28
1 files changed, 0 insertions, 28 deletions
diff --git a/checkDiff b/checkDiff
deleted file mode 100755
index 8643e04..0000000
--- a/checkDiff
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/bin/sh
-
-a="$1"
-aDat="$(
- echo "${a}" | \
- tr '/' '\n' | \
- grep -m1 '^[0-9]\{4\}\(_[0-9]\{2\}\)\{2\}$'
-)"
-dir="$(
- echo "${a}" | \
- sed "s|/${aDat}/.*$||"
-)"
-bDat="$(
- ls -1 "${dir}" | \
- grep -v "^${aDat}\$" | \
- grep '^[0-9]\{4\}\(_[0-9]\{2\}\)\{2\}$' | \
- sort | \
- tail -n1
-)"
-b="$(
- echo "${a}" | \
- sed "s|/2016_12_[0-9][0-9]/|/${bDat}/|"
-)"
-
-(diff -q "$a" "$b" 2> /dev/null > /dev/null) \
- && [ "$(stat "$a" -c'%h')" -lt 64000 ] \
- && [ "$(stat "$b" -c'%h')" -lt 64000 ] \
- && echo "'$a' equals '$b'"