From 9840148ba95678c7b9316e171fd2a4659a88c1d3 Mon Sep 17 00:00:00 2001
From: spmfox <spmfox@foxwd.com>
Date: Sun, 17 Apr 2022 14:52:05 -0400
Subject: [PATCH] Update automated install/basic-install.sh

Co-authored-by: Dan Schaper <dan.schaper@pi-hole.net>
---
 automated install/basic-install.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh
index ced6ff2a..79b6d1fa 100755
--- a/automated install/basic-install.sh	
+++ b/automated install/basic-install.sh	
@@ -2216,7 +2216,7 @@ get_binary_name() {
         local rev
         rev=$(uname -m | sed "s/[^0-9]//g;")
         local lib
-        lib=$(ldd /bin/bash | grep -E '^\s*/lib' | awk '{ print $1 }')
+        lib=$(ldd $(which sh) | grep -E '^\s*/lib' | awk '{ print $1 }')
         if [[ "${lib}" == "/lib/ld-linux-aarch64.so.1" ]]; then
             printf "%b  %b Detected AArch64 (64 Bit ARM) processor\\n" "${OVER}" "${TICK}"
             # set the binary to be used