1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-22 10:08:15 -05:00

bug fixes

This commit is contained in:
v2ray 2016-05-25 12:30:04 +02:00
parent a4296f22df
commit f48f51c6b4

View File

@ -48,7 +48,7 @@ function update_software() {
function install_component() {
local COMPONENT=$1
COMPONENT_CMD=$(command -v $COMPONENT)
if [ -n "${COMPONENT_CMD}"]; then
if [ -n "${COMPONENT_CMD}" ]; then
return
fi
@ -71,9 +71,9 @@ VER="$(curl -s https://api.github.com/repos/v2ray/v2ray-core/releases/latest | g
CUR_VER="$(/usr/bin/v2ray/v2ray -version | head -n 1 | cut -d " " -f2)"
if [[ "$VER" == "$CUR_VER"]]; then
if [[ "$VER" == "$CUR_VER" ]]; then
echo "Lastest version $VER is already installed. Exiting..."
return
exit
fi
ARCH=$(uname -m)