From b8cd238fa1eab042480de9fc77b2c52c375572f0 Mon Sep 17 00:00:00 2001 From: Adam Warner Date: Sun, 23 Aug 2020 14:35:02 +0100 Subject: [PATCH] Update advanced/Scripts/piholeDebug.sh Co-authored-by: DL6ER --- advanced/Scripts/piholeDebug.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/advanced/Scripts/piholeDebug.sh b/advanced/Scripts/piholeDebug.sh index f1b420e3..d3083cc5 100755 --- a/advanced/Scripts/piholeDebug.sh +++ b/advanced/Scripts/piholeDebug.sh @@ -406,7 +406,7 @@ os_check() { #Get the return code of the previous command (last line) digReturnCode="${cmdResult##*$'\n'}" - # Dig returned 0 code, so get the actual response, and loop through it to determine if the detected variables above are valid + # Extract dig response response="${cmdResult%%$'\n'*}" IFS=" " read -r -a supportedOS < <(echo "${response}" | tr -d '"')