mirror of https://github.com/v2ray/v2ray-core
minor: ignore error on mkdir in install.sh
parent
20b64ecdfe
commit
3bbb1c6a93
|
@ -9,15 +9,7 @@ if [ "$ARCH" == "i686" ] || [ "$ARCH" == "i386" ]; then
|
|||
GO_CUR=${GO_X86}
|
||||
fi
|
||||
|
||||
function git_not_installed {
|
||||
git --version 2>&1 >/dev/null
|
||||
GIT_IS_AVAILABLE=$?
|
||||
return $GIT_IS_AVAILABLE
|
||||
}
|
||||
|
||||
if [ git_not_installed ]; then
|
||||
apt-get install git -y
|
||||
fi
|
||||
which git > /dev/null || apt-get install git -y
|
||||
|
||||
if [ -z "$GOPATH" ]; then
|
||||
curl -o go_latest.tar.gz ${GO_CUR}
|
||||
|
@ -25,7 +17,7 @@ if [ -z "$GOPATH" ]; then
|
|||
rm go_latest.tar.gz
|
||||
export PATH=$PATH:/usr/local/go/bin
|
||||
|
||||
mkdir /v2ray
|
||||
mkdir /v2ray &> /dev/null
|
||||
export GOPATH=/v2ray
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue