fix upgrade paths

This commit is contained in:
nahuhh 2024-06-11 15:51:02 -05:00
parent 48ee19de36
commit 32d5003c43
2 changed files with 9 additions and 2 deletions

View file

@ -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

View file

@ -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 .