From ff1138d51c9f6dda4873fe0a35ccefb09528869b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Uwe=20K=C3=B6cher?= Date: Thu, 5 Nov 2015 18:38:17 +0100 Subject: [PATCH] candi: Bugfix if CHECKSUM=ignore --- candi.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/candi.sh b/candi.sh index 2fa68ea..d8fdee8 100755 --- a/candi.sh +++ b/candi.sh @@ -128,6 +128,11 @@ quit_if_fail() { verify_archive() { ARCHIVE_FILE=$1 + # Make sure the archive was downloaded + if [ ! -e ${ARCHIVE_FILE} ]; then + return 2 + fi + # Check checksum has been specified for the package if [ -z "${CHECKSUM}" ]; then cecho ${WARN} "No checksum for ${ARCHIVE_FILE}" @@ -140,11 +145,6 @@ verify_archive() { return 1 fi - # Make sure the archive was downloaded - if [ ! -e ${ARCHIVE_FILE} ]; then - return 2 - fi - cecho ${INFO} "Verifying ${ARCHIVE_FILE}" # Verify checksum using md5/md5sum -- 2.39.5