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:
@@ -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
|
||||
|
Reference in New Issue
Block a user