misc: nit

This commit is contained in:
Dylan Araps 2021-07-19 18:16:49 +03:00
parent bfcaca6146
commit 6f2e47f0bb
No known key found for this signature in database
GPG Key ID: 13295DAC2CF13B5C
1 changed files with 7 additions and 2 deletions

9
kiss
View File

@ -1029,8 +1029,13 @@ pkg_verify() {
printf '%s\n%s\n' "- ${chk:-missing}" "+ ${1:-no source}"
case $1-${chk:-null} in
"$chk-$1"|"$1-SKIP") ;;
"$hash"-*|*) die "$repo_name" "Checksum mismatch"
"$chk-$1"|"$1-SKIP")
# We have a match.
;;
"$hash"-*|*)
die "$repo_name" "Checksum mismatch"
;;
esac
shift "$(($# != 0))"