It turns out that cmp -b doesn't work on at least NetBSD, so use -l
instead, and when there's a problem, diff the "bup meta" output as
well.
Thanks to Thomas Klausner <tk@giga.or.at> for the report.
Signed-off-by: Rob Browning <rlb@defaultvalue.org>
|| exit $?
bupm_hash=$(WVPASS echo "$bupm_hash" | cut -d' ' -f 1) || exit $?
WVPASS git cat-file blob "$bupm_hash" > git-cat-bupm
-WVPASS cmp -b git-cat-bupm bup-cat-bupm
+if ! cmp git-cat-bupm bup-cat-bupm; then
+ cmp -l git-cat-bupm bup-cat-bupm
+ diff -uN <(bup meta -tvvf git-cat-bupm) <(bup meta -tvvf bup-cat-bupm)
+ WVPASS cmp git-cat-bupm bup-cat-bupm
+fi
WVPASS rm -rf "$tmpdir"