From a73f120c9df48274d57c6daa5f4c38abbd04c21e Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sat, 17 Jul 2021 15:07:06 +0300 Subject: [PATCH] kiss: Only verify checksums if we have checksums to verify --- kiss | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kiss b/kiss index 3f50b06..2617a2f 100755 --- a/kiss +++ b/kiss @@ -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