kiss: Only verify checksums if we have checksums to verify

This commit is contained in:
Dylan Araps 2021-07-17 15:07:06 +03:00
parent 912ba91654
commit a73f120c9d
No known key found for this signature in database
GPG Key ID: 13295DAC2CF13B5C

3
kiss
View File

@ -960,6 +960,9 @@ pkg_verify() {
# shellcheck disable=2038,2086
set -- $_hash
# Only read checksums if we generated some.
! [ "$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 _ || [ "$1" ]; do