No need for explicit exit 1 as we use set -e - dedup - deduplicating backup program
HTML git clone git://bitreich.org/dedup/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/dedup/
DIR Log
DIR Files
DIR Refs
DIR Tags
DIR README
DIR LICENSE
---
DIR commit fd1b9fb53ac259c05339fc3bda38583463e0ab92
DIR parent d7f40da156de18b2835f7387145f8d2fa5e971cc
HTML 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:
M dotest | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
DIR 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"
}