misc: nit

This commit is contained in:
Dylan Araps 2021-08-30 17:20:38 +03:00
parent 02cec7a879
commit 98097feec5
No known key found for this signature in database
GPG Key ID: 13295DAC2CF13B5C
1 changed files with 1 additions and 4 deletions

5
kiss
View File

@ -1075,12 +1075,9 @@ pkg_verify() {
# shellcheck disable=2038,2086
set -- $hash
# Only read checksums if we generated some.
null "$1" ||
# Check that the first column (separated by whitespace) match in both
# checksum files. If any part of either file differs, mismatch. Abort.
while read -r chk _ || ok "$1"; do
null "$1" || while read -r chk _ || ok "$1"; do
printf '%s\n%s\n' "- ${chk:-missing}" "+ ${1:-no source}"
case $1-${chk:-null} in