diff options
author | Iru Cai <mytbk920423@gmail.com> | 2018-09-22 15:50:50 +0800 |
---|---|---|
committer | Iru Cai <mytbk920423@gmail.com> | 2018-09-22 15:50:50 +0800 |
commit | 4fad0726d3f68db2b7c538d055280af481ba0c92 (patch) | |
tree | 070fab8e7e4ac47450721ee738e92c470c3dd98e | |
parent | 04fdf99f37254e91960d59fa364ca1865838953b (diff) | |
download | liveusb-builder-4fad0726d3f68db2b7c538d055280af481ba0c92.tar.xz |
drop MD5, add custom verify
-rw-r--r-- | functions.sh | 5 |
1 files 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 |