install.sh 556 B

12345678910111213141516
  1. if [ "x$GOPATH" = "x" ];then
  2. echo "GOPATH is not set, please install golang & set $GOPATH!"
  3. exit 1
  4. fi
  5. export GO111MODULE="off"
  6. echo "set GO111MODULE=off"
  7. mkdir -p $GOPATH/src/github.com/710leo
  8. if [ ! -d "$GOPATH/src/github.com/710leo/urlooker" ]; then
  9. cd $GOPATH/src/github.com/710leo && git clone https://github.com/710leo/urlooker.git
  10. else
  11. cd $GOPATH/src/github.com/710leo/urlooker && git pull
  12. fi
  13. cd $GOPATH/src/github.com/710leo/urlooker && ./control build
  14. echo "install ok! run cd $GOPATH/src/github.com/710leo/urlooker && ./control start all"