mirror of
https://github.com/nahuhh/basicswap-bash.git
synced 2024-12-22 19:49:21 +00:00
13 lines
567 B
Bash
Executable file
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"
|