From 4207f122d9370da58538ee10602ca65851095bb1 Mon Sep 17 00:00:00 2001 From: "David (DTA) Oleander" Date: Tue, 19 Sep 2023 15:40:28 -0400 Subject: [PATCH] Show binary diff if exif has no diff --- diff-image | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/diff-image b/diff-image index 0f6a316..3b51587 100755 --- a/diff-image +++ b/diff-image @@ -134,7 +134,7 @@ exif() diff_clean_names() { - diff -u "$1" --label "$name1" "$2" --label "$name2" || true + diff -u "$1" --label "$name1" "$2" --label "$name2" } @@ -143,13 +143,13 @@ if which exiftool > /dev/null then d1="$(exif "$f1")" d2="$(exif "$f2")" - diff_clean_names "$d1" "$d2" + diff_clean_names "$d1" "$d2" && diff_clean_names "$f1" "$f2" || true set +e diff -q "$d1" "$d2" >/dev/null exifdiff=$? set -e else - diff_clean_names "$f1" "$f2" + diff_clean_names "$f1" "$f2" || true fi if $exif_only