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