basicswap-bash/bsx/upgradecoins.sh
2024-06-04 08:59:33 -05:00

13 lines
567 B
Bash
Executable file

#!/bin/bash
## Prompt for user input
echo "You can only upgrade coins which you have already added to your install"
echo -e "\n\nList of coins supported by BasicSwapDEX (case sensitive):\nbitcoin\ndash\ndecred\nfiro\nlitecoin\nmonero\nparticl\npivx\nwownero\n"
read -p 'Full name of coin to upgrade [example: litecoin] ' upgradecoin
## Confirm
read -p $'\nUpgrade '$upgradecoin', correct? Press any key to continue. CTRL-C to exit'
## Upgrade the coin
basicswap-prepare --datadir=$SWAP_DATADIR -preparebinonly --withcoins=$upgradecoin
echo "Upgraded $upgradecoin"