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

9
kiss
View File

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