basicswap-bash/bsx/upgradecoins.sh

14 lines
567 B
Bash
Raw Normal View History

#!/bin/bash
## Prompt for user input
2024-06-04 02:20:34 +00:00
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
2024-06-04 02:20:34 +00:00
read -p $'\nUpgrade '$upgradecoin', correct? Press any key to continue. CTRL-C to exit'
2024-06-04 02:20:34 +00:00
## Upgrade the coin
basicswap-prepare --datadir=$SWAP_DATADIR -preparebinonly --withcoins=$upgradecoin
echo "Upgraded $upgradecoin"