You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
478 B
19 lines
478 B
#!/usr/bin/env bash |
|
## rust must be installed |
|
if ! command -v "cargo" &> /dev/null; then |
|
echo "rust and cargo is not installed." |
|
echo "run this command to install:" |
|
echo |
|
echo "curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh" |
|
exit |
|
else |
|
echo "cargo is installed." |
|
fi |
|
|
|
rm -rf relay-tester |
|
git clone https://github.com/mikedilger/relay-tester.git |
|
cd relay-tester |
|
cargo build -r |
|
cp target/release/relay-tester $GOBIN/ |
|
cd .. |
|
#rm -rf relay-tester |