1
0
mirror of https://codeberg.org/kiss-community/kiss synced 2024-12-23 07:30:16 -07:00

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 # shellcheck disable=2038,2086
set -- $_hash set -- $_hash
# Only read checksums if we generated some.
! [ "$1" ] ||
# Check that the first column (separated by whitespace) match in both # Check that the first column (separated by whitespace) match in both
# checksum files. If any part of either file differs, mismatch. Abort. # checksum files. If any part of either file differs, mismatch. Abort.
while read -r chk _ || [ "$1" ]; do while read -r chk _ || [ "$1" ]; do