Fixing wrong variables

pull/1/head
Dct Mei 2020-03-24 02:02:51 +08:00
parent 37f2a0c3a0
commit 2167d99c2e
No known key found for this signature in database
GPG Key ID: 50BF8B712DCAD7EA
1 changed files with 2 additions and 2 deletions

View File

@ -251,8 +251,8 @@ downloadV2Ray() {
fi
# Verification of V2Ray archive
for LISTSUM in 'md5' 'sha1' 'sha256' 'sha512'; do
SUM="$(${LISTSUM}sum $ZIPFILE | sed 's/ .*//')"
CHECKSUM="$(grep ${LISTSUM^^} $ZIPFILE.dgst | sed 's/.* //')"
SUM="$(${LISTSUM}sum $ZIP_FILE | sed 's/ .*//')"
CHECKSUM="$(grep ${LISTSUM^^} $ZIP_FILE.dgst | sed 's/.* //')"
if [[ "$SUM" != "$CHECKSUM" ]]; then
colorEcho "$RED" 'Check failed! Please check your network or try again.'
return 1