2024-01-22 22:06:38 +00:00
|
|
|
#!/bin/bash
|
|
|
|
cd $SWAP_DATADIR/basicswap
|
2024-06-04 02:20:34 +00:00
|
|
|
|
|
|
|
# Download updated scripts
|
|
|
|
echo "Updating basicswap-bash scripts" && sleep 1
|
|
|
|
git clone https://github.com/nahuhh/basicswap-bash -b dev
|
|
|
|
cd basicswap-bash
|
|
|
|
# Move scripts
|
2024-06-05 18:36:36 +00:00
|
|
|
rm -rf $HOME/.local/bin/bsx
|
|
|
|
mv -f basic* bsx* $HOME/.local/bin/
|
2024-06-04 02:20:34 +00:00
|
|
|
# Cleanup install
|
2024-06-07 00:23:03 +00:00
|
|
|
cd $SWAP_DATADIR/basicswap
|
2024-06-04 02:20:34 +00:00
|
|
|
rm -rf basicswap-bash
|
|
|
|
|
|
|
|
echo "Updating BasicSwapDEX" && sleep 1
|
|
|
|
# Delete dangling build folder. Same as --no-cache for docker
|
2024-06-07 00:23:03 +00:00
|
|
|
rm -rf $SWAP_DATADIR/basicswap/build
|
|
|
|
# Switch to new repo: basicswap/basicswap
|
|
|
|
git remote set-url origin https://github.com/basicswap/basicswap
|
|
|
|
# Fix conflicts from force-pushes and rebase
|
2024-06-22 01:48:18 +00:00
|
|
|
git checkout master
|
2024-06-04 02:20:34 +00:00
|
|
|
# Pull repo
|
2024-01-22 22:06:38 +00:00
|
|
|
git pull
|
2024-06-04 02:20:34 +00:00
|
|
|
# Install
|
2024-02-25 13:28:40 +00:00
|
|
|
$SWAP_DATADIR/venv/bin/pip install .
|