File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -222,31 +222,32 @@ checkit() {
222
222
eval " $1 "
223
223
status=$?
224
224
if [ $status != 0 ]; then
225
- failed=" YES " ;
225
+ failed=" $failed status= $status "
226
226
fi
227
227
228
228
echo " -------------"
229
229
echo " check how the directory listings compare with diff:"
230
230
echo " "
231
231
( cd " $2 " && rsync_ls_lR . ) > " $tmpdir /ls-from"
232
232
( cd " $3 " && rsync_ls_lR . ) > " $tmpdir /ls-to"
233
- diff $diffopt " $tmpdir /ls-from" " $tmpdir /ls-to" || failed=YES
233
+ diff $diffopt " $tmpdir /ls-from" " $tmpdir /ls-to" || failed=" $failed dir-diff "
234
234
235
235
echo " -------------"
236
236
echo " check how the files compare with diff:"
237
237
echo " "
238
238
if [ " x$4 " != x ]; then
239
239
echo " === Skipping (as directed) ==="
240
240
else
241
- diff -r $diffopt " $2 " " $3 " || failed=YES
241
+ diff -r $diffopt " $2 " " $3 " || failed=" $failed file-diff "
242
242
fi
243
243
244
244
echo " -------------"
245
245
if [ -z " $failed " ] ; then
246
246
return 0
247
- else
248
- return 1
249
247
fi
248
+
249
+ echo " Failed: $failed "
250
+ return 1
250
251
}
251
252
252
253
You can’t perform that action at this time.
0 commit comments