| 1234567891011121314151617181920212223242526272829303132333435 | #!/bin/bashGO_AMD64=https://storage.googleapis.com/golang/go1.5.1.linux-amd64.tar.gzGO_X86=https://storage.googleapis.com/golang/go1.5.1.linux-386.tar.gzARCH=$(uname -m)GO_CUR=${GO_AMD64}if [ "$ARCH" == "i686" || "$ARCH" == "i386" ]; then  GO_CUR=${GO_X86}fifunction 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 -yfiif [ -z "$GOPATH" ]; then  curl -o go_latest.tar.gz ${GO_CUR}  tar -C /usr/local -xzf go_latest.tar.gz  rm go_latest.tar.gz  export PATH=$PATH:/usr/local/go/bin    mkdir /v2ray  export GOPATH=/v2rayfigo get github.com/v2ray/v2ray-corego build -o $GOPATH/bin/v2ray -compiler gc github.com/v2ray/v2ray-core/release/server
 |