dedup

data deduplication program
git clone git://git.2f30.org/dedup.git
Log | Files | Refs | README | LICENSE

commit fd1b9fb53ac259c05339fc3bda38583463e0ab92
parent d7f40da156de18b2835f7387145f8d2fa5e971cc
Author: sin <sin@2f30.org>
Date:   Thu, 25 Apr 2019 18:11:32 +0100

No need for explicit exit 1 as we use set -e

Diffstat:
Mdotest | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/dotest b/dotest @@ -13,8 +13,8 @@ test0() sum0=`sha1sum "$data" | awk '{print $1}'` sum1=`./dup-unpack -r "$repo" snap0 | sha1sum | awk '{print $1}'` sum2=`./dup-unpack -r "$repo" snap1 | sha1sum | awk '{print $1}'` - [ "$sum0" = "$sum1" ] || exit 1 - [ "$sum0" = "$sum2" ] || exit 1 + [ "$sum0" = "$sum1" ] + [ "$sum0" = "$sum2" ] rm -rf "$repo" "$data" } @@ -30,8 +30,8 @@ test1() sum0=`sha1sum "$data" | awk '{print $1}'` sum1=`./dup-unpack -r "$repo" snap0 | sha1sum | awk '{print $1}'` sum2=`./dup-unpack -r "$repo" snap1 | sha1sum | awk '{print $1}'` - [ "$sum0" = "$sum1" ] || exit 1 - [ "$sum0" = "$sum2" ] || exit 1 + [ "$sum0" = "$sum1" ] + [ "$sum0" = "$sum2" ] rm -rf "$repo" "$data" }