Skip to content

Commit

Permalink
fix get the latest release tag error
Browse files Browse the repository at this point in the history
  • Loading branch information
kslr committed May 31, 2020
1 parent 524b2ac commit bab1c33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion release/install-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ getVersion(){
RETVAL=$?
CUR_VER="$(normalizeVersion "$(echo "$VER" | head -n 1 | cut -d " " -f2)")"
TAG_URL="https://api.github.com/repos/v2ray/v2ray-core/releases/latest"
NEW_VER="$(normalizeVersion "$(curl ${PROXY} -s "${TAG_URL}" --connect-timeout 10| grep 'tag_name' | cut -d\" -f4)")"
NEW_VER="$(normalizeVersion "$(curl ${PROXY} -H "Accept: application/json" -H "User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:74.0) Gecko/20100101 Firefox/74.0" -s "${TAG_URL}" --connect-timeout 10| grep 'tag_name' | cut -d\" -f4)")"

if [[ $? -ne 0 ]] || [[ $NEW_VER == "" ]]; then
colorEcho ${RED} "Failed to fetch release information. Please check your network or try again."
Expand Down

0 comments on commit bab1c33

Please sign in to comment.