basicswap-bash/bsx/update.sh

24 lines
582 B
Bash
Raw Normal View History

#!/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
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 .