correct check code instruction

pull/1/head
Dct Mei 2020-03-16 15:21:23 +08:00
parent 33da3e507e
commit 2278203c14
No known key found for this signature in database
GPG Key ID: 50BF8B712DCAD7EA
1 changed files with 1 additions and 1 deletions

View File

@ -155,7 +155,7 @@ downloadV2Ray(){
colorEcho ${RED} "Failed to download! Please check your network or try again." colorEcho ${RED} "Failed to download! Please check your network or try again."
return 3 return 3
fi fi
for LISTSUM in 'md5' 'sha1' 'sha256' 'sha512'; do for LISTSUM in 'md5sum' 'sha1sum' 'sha256sum' 'sha512sum'; do
SUM="$($LISTSUM $ZIPFILE | sed 's/.* //')" SUM="$($LISTSUM $ZIPFILE | sed 's/.* //')"
CHECKSUM="$(grep ${LISTSUM^^} $ZIPFILE.dgst | sed 's/.* //')" CHECKSUM="$(grep ${LISTSUM^^} $ZIPFILE.dgst | sed 's/.* //')"
if [[ "$SUM" != "$CHECKSUM" ]]; then if [[ "$SUM" != "$CHECKSUM" ]]; then