From 32d5003c43467de6aaf2341d83e4b384ff115fe9 Mon Sep 17 00:00:00 2001 From: nahuhh <50635951+nahuhh@users.noreply.github.com> Date: Tue, 11 Jun 2024 15:51:02 -0500 Subject: [PATCH] fix upgrade paths --- bsx-update | 9 ++++++++- bsx/setup.sh | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/bsx-update b/bsx-update index b292024..431cd73 100755 --- a/bsx-update +++ b/bsx-update @@ -1,4 +1,11 @@ #!/bin/bash export SWAP_DATADIR=$HOME/coinswaps . $SWAP_DATADIR/venv/bin/activate && python -V -$HOME/.local/bin/bsx/update.sh + +if [ -f /usr/local/bin/bsx/update.sh ]; then + /usr/local/bin/bsx/update.sh + cd /usr/local/bin + sudo rm -rf basicswap-bash bsx* +else + $HOME/.local/bin/bsx/update.sh +fi diff --git a/bsx/setup.sh b/bsx/setup.sh index 80aa8fc..5cdf4c3 100755 --- a/bsx/setup.sh +++ b/bsx/setup.sh @@ -15,7 +15,7 @@ $SWAP_DATADIR/venv/bin/pip install . ## Clone basicswap git cd $SWAP_DATADIR -git clone https://github.com/tecnovert/basicswap -b wow +git clone https://github.com/basicswap/basicswap -b dev cd $SWAP_DATADIR/basicswap ## Install basicswap $SWAP_DATADIR/venv/bin/pip install .