update: avoid broken state if cancelling update

This commit is contained in:
nahuhh 2025-01-04 22:58:22 +00:00
parent 4b52312f8f
commit 3d51d62b49

View file

@ -41,12 +41,12 @@ else
fi
# Move scripts
rm -rf $HOME/.local/bin/bsx
mv -f basic* bsx* $HOME/.local/bin/
rm -rf $HOME/.local/bin/bsx $HOME/.local/bin/basicswap-bash
cp -r basic* bsx* $HOME/.local/bin/
# Copy core_versions to basicswap folder
mv core_versions $SWAP_DATADIR/basicswap/core_versions
# Update BasicSwap, coincurve and coin cores
$HOME/.local/bin/bsx/update.sh
./bsx/update.sh
fi