Fix mistakes

pull/86/head
Dct Mei 2020-04-11 22:27:19 +08:00
parent d2cb0619bd
commit a5c6a928c3
No known key found for this signature in database
GPG Key ID: 50BF8B712DCAD7EA
1 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ fi
for LISTSUM in 'md5' 'sha1' 'sha256' 'sha512'; do
SUM="$(${LISTSUM}sum $ZIP_FILE | sed 's/ .*//')"
CHECKSUM="$(grep $(echo $LISTSUM | tr [[:lower:]] [:upper:]) $ZIP_FILE.dgst | sed 's/.* //')"
if [[[ "$SUM" != "$CHECKSUM" ]]]; then
if [[ "$SUM" != "$CHECKSUM" ]]; then
echo 'error: Check failed! Please check your network or try again.'
exit 1
fi
@ -72,7 +72,7 @@ fi
if [[ ! -f '/etc/init.d/v2ray' ]]; then
mkdir "${TMP_DIRECTORY}init.d/"
curl -o "${TMP_DIRECTORY}init.d/v2ray" https://raw.githubusercontent.workers.dev/v2fly/alpinelinux-install-v2ray/master/init.d/v2ray -s
if [[[ "$?" -ne '0' ]]]; then
if [[ "$?" -ne '0' ]]; then
echo 'error: Failed to start service file download! Please check your network or try again.'
exit 1
fi