summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIru Cai <mytbk920423@gmail.com>2016-08-09 00:13:26 +0800
committerIru Cai <mytbk920423@gmail.com>2016-08-09 00:13:26 +0800
commit6eca7ff1fb08bea590049082ae3ff52ed11e12e9 (patch)
treef1f3d3e6a0ab530ce455470f434bd6aca030d332
parent0ec2423fdd5c26eab119597eb536a49c7950e28a (diff)
downloadliveusb-builder-6eca7ff1fb08bea590049082ae3ff52ed11e12e9.tar.xz
add SHA512 support
-rw-r--r--functions.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/functions.sh b/functions.sh
index 8c83cb3..8af5f07 100644
--- a/functions.sh
+++ b/functions.sh
@@ -1,6 +1,9 @@
checksum_verify() {
local _hashtool _hashsum _cksum
- if [ -n "$SHA256" ]; then
+ if [ -n "$SHA512" ]; then
+ _hashtool=sha512sum
+ _hashsum=$SHA512
+ elif [ -n "$SHA256" ]; then
_hashtool=sha256sum
_hashsum=$SHA256
elif [ -n "$SHA1" ]; then
@@ -21,7 +24,7 @@ checksum_verify() {
}
process_isoinfo() {
- unset MD5 SHA1 SHA256
+ unset MD5 SHA1 SHA256 SHA512
source "distro/$1/isoinfo"
ISOFILE="$(basename $ISOURL)"
}