From: Uwe Köcher Date: Thu, 5 Nov 2015 17:38:17 +0000 (+0100) Subject: candi: Bugfix if CHECKSUM=ignore X-Git-Tag: v0.8~6 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff1138d51c9f6dda4873fe0a35ccefb09528869b;p=candi.git candi: Bugfix if CHECKSUM=ignore --- 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