mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-02-20 23:47:21 -05:00
minor: ignore error on mkdir in install.sh
This commit is contained in:
parent
20b64ecdfe
commit
3bbb1c6a93
@ -9,23 +9,15 @@ if [ "$ARCH" == "i686" ] || [ "$ARCH" == "i386" ]; then
|
|||||||
GO_CUR=${GO_X86}
|
GO_CUR=${GO_X86}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
function git_not_installed {
|
which git > /dev/null || apt-get install git -y
|
||||||
git --version 2>&1 >/dev/null
|
|
||||||
GIT_IS_AVAILABLE=$?
|
|
||||||
return $GIT_IS_AVAILABLE
|
|
||||||
}
|
|
||||||
|
|
||||||
if [ git_not_installed ]; then
|
|
||||||
apt-get install git -y
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "$GOPATH" ]; then
|
if [ -z "$GOPATH" ]; then
|
||||||
curl -o go_latest.tar.gz ${GO_CUR}
|
curl -o go_latest.tar.gz ${GO_CUR}
|
||||||
tar -C /usr/local -xzf go_latest.tar.gz
|
tar -C /usr/local -xzf go_latest.tar.gz
|
||||||
rm go_latest.tar.gz
|
rm go_latest.tar.gz
|
||||||
export PATH=$PATH:/usr/local/go/bin
|
export PATH=$PATH:/usr/local/go/bin
|
||||||
|
|
||||||
mkdir /v2ray
|
mkdir /v2ray &> /dev/null
|
||||||
export GOPATH=/v2ray
|
export GOPATH=/v2ray
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user