mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-09 19:51:47 +00:00
update bash script
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
#! /bin/bash
|
||||
|
||||
#echo "Enter the latest lighthouse version:"
|
||||
|
||||
#read version
|
||||
version=4.2.0
|
||||
read -p "Enter Lighthouse version: " version
|
||||
|
||||
#download lighthouse binary
|
||||
binary="curl -LO https://github.com/sigp/lighthouse/releases/download/v$version/lighthouse-v$version-x86_64-unknown-linux-gnu.tar.gz"
|
||||
@@ -17,24 +17,27 @@ tar xvf lighthouse-v$version-x86_64-unknown-linux-gnu.tar.gz
|
||||
rm lighthouse-v$version-x86_64-unknown-linux-gnu.tar.gz
|
||||
|
||||
#outputs help text. the "&& echo >> cli.txt is to create a line space between the next output"
|
||||
lighthouse --help | tee cli.txt && echo >> cli.txt
|
||||
./lighthouse --help | tee cli.txt && echo >> cli.txt
|
||||
|
||||
# account manager, the -a option means append, i.e., append the output so that all outputs are in a single file
|
||||
lighthouse a --help | tee -a cli.txt && echo >> cli.txt
|
||||
./lighthouse a --help | tee -a cli.txt && echo >> cli.txt
|
||||
# subcommand under account
|
||||
lighthouse a validator --help | tee -a cli.txt && echo >> cli.txt
|
||||
lighthouse a validator modify --help | tee -a cli.txt && echo >> cli.txt
|
||||
lighthouse a validator slashing-protection --help | tee -a cli.txt && echo >> cli.txt
|
||||
./lighthouse a validator --help | tee -a cli.txt && echo >> cli.txt
|
||||
./lighthouse a validator modify --help | tee -a cli.txt && echo >> cli.txt
|
||||
./lighthouse a validator slashing-protection --help | tee -a cli.txt && echo >> cli.txt
|
||||
|
||||
lighthouse a wallet --help | tee -a cli.txt && echo >> cli.txt
|
||||
./lighthouse a wallet --help | tee -a cli.txt && echo >> cli.txt
|
||||
|
||||
# beacon node
|
||||
lighthouse bn --help | tee -a cli.txt && echo >> cli.txt
|
||||
./lighthouse bn --help | tee -a cli.txt && echo >> cli.txt
|
||||
# boot-node
|
||||
lighthouse boot_node --help | tee -a cli.txt && echo >> cli.txt
|
||||
./lighthouse boot_node --help | tee -a cli.txt && echo >> cli.txt
|
||||
|
||||
# database manager
|
||||
lighthouse db --help | tee -a cli.txt && echo >> cli.txt
|
||||
./lighthouse db --help | tee -a cli.txt && echo >> cli.txt
|
||||
|
||||
# validator client
|
||||
lighthouse vc --help | tee -a cli.txt && echo >> cli.txt
|
||||
./lighthouse vc --help | tee -a cli.txt && echo >> cli.txt
|
||||
|
||||
# remove binary file
|
||||
rm lighthouse
|
||||
|
||||
Reference in New Issue
Block a user