From f00c1afab71ceadd2217598f1087a809fe0bb1d2 Mon Sep 17 00:00:00 2001 From: deicidus Date: Fri, 16 Jun 2023 02:27:53 -0700 Subject: [PATCH] posix --- spells/menu/bitcoin/uninstall-bitcoin | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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