mirror of
https://github.com/nahuhh/basicswap-bash.git
synced 2024-12-22 19:49:21 +00:00
friendly update coincurve
This commit is contained in:
parent
cb9b58be99
commit
97d9615503
1 changed files with 14 additions and 0 deletions
|
@ -1,4 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
COINCURVE=0.2
|
||||||
cd $SWAP_DATADIR/basicswap
|
cd $SWAP_DATADIR/basicswap
|
||||||
|
|
||||||
# Download updated scripts
|
# Download updated scripts
|
||||||
|
@ -17,6 +18,19 @@ echo "Updating BasicSwapDEX" && sleep 1
|
||||||
# Delete dangling build folder. Same as --no-cache for docker
|
# Delete dangling build folder. Same as --no-cache for docker
|
||||||
rm -rf $SWAP_DATADIR/basicswap/build
|
rm -rf $SWAP_DATADIR/basicswap/build
|
||||||
|
|
||||||
|
# Coincurve
|
||||||
|
cd $SWAP_DATADIR
|
||||||
|
if [[ -d coincurve-basicswap ]]; then
|
||||||
|
cd coincurve-basicswap
|
||||||
|
git pull
|
||||||
|
git checkout basicswap_v$COINCURVE
|
||||||
|
else
|
||||||
|
git clone https://github.com/basicswap/coincurve -b basicswap_v$COINCURVE coincurve-basicswap && cd $_
|
||||||
|
fi
|
||||||
|
$SWAP_DATADIR/venv/bin/pip install .
|
||||||
|
|
||||||
|
# BasicSwap
|
||||||
|
git clone basicswap
|
||||||
# Switch to new repo: basicswap/basicswap
|
# Switch to new repo: basicswap/basicswap
|
||||||
cd $SWAP_DATADIR/basicswap
|
cd $SWAP_DATADIR/basicswap
|
||||||
git remote set-url origin https://github.com/basicswap/basicswap
|
git remote set-url origin https://github.com/basicswap/basicswap
|
||||||
|
|
Loading…
Reference in a new issue