mirror of
https://github.com/nahuhh/basicswap-bash.git
synced 2024-11-16 15:57:38 +00:00
33 lines
825 B
Bash
Executable file
33 lines
825 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
|
|
rm -rf $HOME/.local/bin/bsx
|
|
mv -f basic* bsx* $HOME/.local/bin/
|
|
|
|
# Copy core_versions to basicswap folder
|
|
mv core_versions $SWAP_DATADIR/basicswap/core_versions
|
|
|
|
echo "Updating BasicSwapDEX" && sleep 1
|
|
# Delete dangling build folder. Same as --no-cache for docker
|
|
rm -rf $SWAP_DATADIR/basicswap/build
|
|
|
|
# Switch to new repo: basicswap/basicswap
|
|
cd $SWAP_DATADIR/basicswap
|
|
git remote set-url origin https://github.com/basicswap/basicswap
|
|
# git checkout master
|
|
git pull
|
|
|
|
# Update BasicSwap
|
|
$SWAP_DATADIR/venv/bin/pip install .
|
|
|
|
# Update Coin Cores
|
|
$HOME/.local/bin/bsx/auto_coinupd8.sh
|
|
|
|
# Cleanup
|
|
rm -rf basicswap-bash
|