From 4fad0726d3f68db2b7c538d055280af481ba0c92 Mon Sep 17 00:00:00 2001 From: Iru Cai Date: Sat, 22 Sep 2018 15:50:50 +0800 Subject: drop MD5, add custom verify --- functions.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/functions.sh b/functions.sh index 00e0e0c..d888941 100644 --- a/functions.sh +++ b/functions.sh @@ -12,9 +12,8 @@ checksum_verify() { elif [ -n "$SHA1" ]; then _hashtool=sha1sum _hashsum=$SHA1 - elif [ -n "$MD5" ]; then - _hashtool=md5sum - _hashsum=$MD5 + elif [ -n "$VERIFY" ]; then + "$VERIFY" && return 0 else fatalerror "Cannot find the SHA256, SHA1, or MD5 checksum of $ISOFILE" fi -- cgit v1.2.3