relaytester-install.sh raw

   1  #!/usr/bin/env bash
   2  ## rust must be installed
   3  if ! command -v "cargo" &> /dev/null; then
   4      echo "rust and cargo is not installed."
   5      echo "run this command to install:"
   6      echo
   7      echo "curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh"
   8      exit
   9  else
  10      echo "cargo is installed."
  11  fi
  12  
  13  rm -rf relay-tester
  14  git clone https://github.com/mikedilger/relay-tester.git
  15  cd relay-tester
  16  cargo build -r
  17  cp target/release/relay-tester $GOBIN/
  18  cd ..
  19  #rm -rf relay-tester