diff --git a/update-branch.sh b/update-branch.sh index f67d6f684..5f06cce99 100755 --- a/update-branch.sh +++ b/update-branch.sh @@ -2,10 +2,25 @@ # # This is because matrix-org doesn't allow anonymous contributors. +# You can run it as a curlpipe if you're brave. # + +if [ "$(pwd)" != "$HOME/go/src/github.com/matrix-org/dendrite" ]; then + if [ ! -d "$HOME/go/src/github.com/matrix-org/dendrite" ]; then + git clone https://github.com/matrix-org/dendrite + cd "$HOME/go/src/github.com/matrix-org/dendrite" + git remote add idk https://github.com/eyedeekay/dendrite + git pull idk i2p-demo + fi + cd "$HOME/go/src/github.com/matrix-org/dendrite" + git checkout i2p-demo +fi + echo "Pulling in changes from matrix-org main" git pull origin main + echo "Pulling in changes from eyedeekay i2p-demo" git pull idk i2p-demo + echo "Generating binary" go build -o bin/dendrite-demo-i2p ./cmd/dendrite-demo-i2p \ No newline at end of file