cd $HOME || return
rm -rf lava
git clone https://github.com/lavanet/lava
cd lava || return
git checkout v4.2.0
export LAVA_BINARY=lavad && make build
mkdir -p $HOME/.lava/cosmovisor/upgrades/v4.2.0/bin
mv build/lavad $HOME/.lava/cosmovisor/upgrades/v4.2.0/bin/