diff --git a/spells/menu/bitcoin/uninstall-bitcoin b/spells/menu/bitcoin/uninstall-bitcoin index 5758b34..694699e 100755 --- a/spells/menu/bitcoin/uninstall-bitcoin +++ b/spells/menu/bitcoin/uninstall-bitcoin @@ -29,8 +29,8 @@ uninstall_bitcoin_from_source() { # Remove Bitcoin binaries explicitly remove_bitcoin_binaries() { 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") - for bin in "${bitcoin_bins[@]}"; do + bitcoin_bins="bitcoind bitcoin-tx bitcoin-wallet test_bitcoin bitcoin-cli bitcoin-qt bitcoin-util" + for bin in $bitcoin_bins; do bin_path=$(which $bin) [ -n "$bin_path" ] && sudo rm -f "$bin_path" done