mirror of https://github.com/v2ray/v2ray-core
bug fixes
parent
a4296f22df
commit
f48f51c6b4
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue