basicswap-bash/bsx-update
2024-06-12 12:33:16 -05:00

11 lines
263 B
Bash
Executable file

#!/bin/bash
export SWAP_DATADIR=$HOME/coinswaps
. $SWAP_DATADIR/venv/bin/activate && python -V
if [ -f /usr/local/bin/bsx/update.sh ]; then
/usr/local/bin/bsx/update.sh
cd /usr/local/bin
sudo rm -rf basicswap-bash bsx*
else
$HOME/.local/bin/bsx/update.sh
fi