mirror of
https://github.com/nahuhh/basicswap-bash.git
synced 2024-12-22 19:49:21 +00:00
23 lines
588 B
Bash
Executable file
23 lines
588 B
Bash
Executable file
#!/bin/bash
|
|
cd $SWAP_DATADIR/basicswap
|
|
|
|
# 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
|
|
sudo rm -rf /usr/local/bin/bsx
|
|
sudo mv -f basic* bsx* /usr/local/bin/
|
|
# 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
|
|
# Install
|
|
$SWAP_DATADIR/venv/bin/pip install .
|