deicidus 1 year ago
parent
commit
f00c1afab7
  1. 4
      spells/menu/bitcoin/uninstall-bitcoin

4
spells/menu/bitcoin/uninstall-bitcoin

@ -29,8 +29,8 @@ uninstall_bitcoin_from_source() {
# Remove Bitcoin binaries explicitly # Remove Bitcoin binaries explicitly
remove_bitcoin_binaries() { remove_bitcoin_binaries() {
echo "Could not find Makefile. Uninstalling Bitcoin by removing binaries explicitly..." echo "Could not find Makefile. Uninstalling Bitcoin by removing binaries explicitly..."
bitcoin_bins=("bitcoind" "bitcoin-tx" "bitcoin-wallet" "test_bitcoin" "bitcoin-cli" "bitcoin-qt" "bitcoin-util") bitcoin_bins="bitcoind bitcoin-tx bitcoin-wallet test_bitcoin bitcoin-cli bitcoin-qt bitcoin-util"
for bin in "${bitcoin_bins[@]}"; do for bin in $bitcoin_bins; do
bin_path=$(which $bin) bin_path=$(which $bin)
[ -n "$bin_path" ] && sudo rm -f "$bin_path" [ -n "$bin_path" ] && sudo rm -f "$bin_path"
done done

Loading…
Cancel
Save