Commit adc76807 authored by intrigeri's avatar intrigeri
Browse files

tails-diff-suites: don't return 1 whenever the diff is non-empty.

diff(1) returns 1 if the compared contents differ.
parent 9766b011
......@@ -147,6 +147,22 @@ case "$MODE" in
error "Unsupported mode: '$MODE'"
esac
diff -Naur "$OLDLIST" "$NEWLIST"
if ! diff -Naur "$OLDLIST" "$NEWLIST" ; then
RET=$?
case "$RET" in
1)
# diff did its job just fine
:
;;
2)
# diff had trouble
error "diff(1) failed."
;;
*)
# undocumented diff exit code
error "diff(1) returned $? -- I don't know what it means."
;;
esac
fi
rm -rf "$WORKDIR"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment