add notes

pull/1/head
Dct Mei 2020-03-24 16:31:06 +08:00
parent a60fd77416
commit b37ee5165d
No known key found for this signature in database
GPG Key ID: 50BF8B712DCAD7EA
1 changed files with 1 additions and 0 deletions

View File

@ -214,6 +214,7 @@ getVersion() {
fi
# Get V2Ray release version number
TMP_FILE="$(mktemp)"
# Avoid errors when installing cURL for the first time
/usr/bin/curl ${PROXY} -o "$TMP_FILE" https://api.github.com/repos/v2ray/v2ray-core/releases/latest -s
if [[ "$?" -ne '0' ]]; then
rm "$TMP_FILE"