bug fixes

pull/168/head
v2ray 2016-05-25 12:30:04 +02:00
parent a4296f22df
commit f48f51c6b4
1 changed files with 3 additions and 3 deletions

View File

@ -48,7 +48,7 @@ function update_software() {
function install_component() { function install_component() {
local COMPONENT=$1 local COMPONENT=$1
COMPONENT_CMD=$(command -v $COMPONENT) COMPONENT_CMD=$(command -v $COMPONENT)
if [ -n "${COMPONENT_CMD}"]; then if [ -n "${COMPONENT_CMD}" ]; then
return return
fi 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)" 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..." echo "Lastest version $VER is already installed. Exiting..."
return exit
fi fi
ARCH=$(uname -m) ARCH=$(uname -m)