More fix for -e

Not sure whether sort, tr or xargs returning non-zero status, but
one of them sometimes does.

Test: manually

Change-Id: I8f2b862de9d6e22dd90068252e393533ec992dfd
This commit is contained in:
Bob Badour
2020-03-20 19:35:48 -07:00
parent b358ebb759
commit 0d3d8e40c1

View File

@@ -469,7 +469,9 @@ case "${notices_out}" in
fi
readonly hashedNotice="${tmpFiles}/hashednotices"
( # md5sum outputs checksum space indicator(space or *) filename newline
set +e
sort -u "${allNotice}" | tr '\n' '\0' | xargs -0 -r md5sum 2>/dev/null
set -e
# use sed to replace space and indicator with separator
) > "${hashedNotice}"
if ${showProgress}; then