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
|
|
|
|
cd ..
|
|
|
|
rm -rf basicswap-bash
|
|
|
|
|
|
|
|
echo "Updating BasicSwapDEX" && sleep 1
|
|
|
|
# Delete dangling build folder. Same as --no-cache for docker
|
|
|
|
rm -rf ~/coinswaps/basicswap/build
|
|
|
|
# Fix conflicts from force-pushes
|
|
|
|
git reset HEAD~5 --hard
|
|
|
|
# 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 .
|