basicswap-bash/bsx/upgradecoins.sh

14 lines
542 B
Bash
Raw Permalink Normal View History

#!/bin/bash
## Prompt for user input
echo "You can only update coins which you have already added to your install"
2024-02-05 02:03:49 +00:00
echo -e "\n\nList of coins supported by BasicSwapDEX (case sensitive):\nbitcoin\ndash\nfiro\nlitecoin\nmonero\nparticl\nPIVX\n"
read -p 'Full name of coin to update [example: litecoin] ' updatecoin
## Confirm
read -p $'\nUpdating $updatecoin, correct? Press any key to continue. CTRL-C to exit'
## Update the coin
basicswap-prepare --datadir=$SWAP_DATADIR -preparebinonly --withcoins=$updatecoin
echo "updating $updatecoin"