diff options
author | Iru Cai <mytbk920423@gmail.com> | 2016-08-09 00:13:26 +0800 |
---|---|---|
committer | Iru Cai <mytbk920423@gmail.com> | 2016-08-09 00:13:26 +0800 |
commit | 6eca7ff1fb08bea590049082ae3ff52ed11e12e9 (patch) | |
tree | f1f3d3e6a0ab530ce455470f434bd6aca030d332 /functions.sh | |
parent | 0ec2423fdd5c26eab119597eb536a49c7950e28a (diff) | |
download | liveusb-builder-6eca7ff1fb08bea590049082ae3ff52ed11e12e9.tar.xz |
add SHA512 support
Diffstat (limited to 'functions.sh')
-rw-r--r-- | functions.sh | 7 |
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)" } |