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