further tweaks, plus a spelling mistake correction

Signed-off-by: Adam Warner <me@adamwarner.co.uk>
This commit is contained in:
Adam Warner 2020-08-23 14:50:04 +01:00
parent b8cd238fa1
commit e02cf6fac5
No known key found for this signature in database
GPG key ID: 872950F3ECF2B173

View file

@ -231,12 +231,16 @@ os_check() {
if [ "$valid_response" = false ]; then if [ "$valid_response" = false ]; then
if [ "${digReturnCode}" -eq 0 ]; then if [ "${digReturnCode}" -eq 0 ]; then
errStr="dig suceeded, but response was blank. Please contact Support" errStr="dig succeeded, but response was blank. Please contact support"
else else
errStr="dig failed with return code ${digReturnCode}" errStr="dig failed with return code ${digReturnCode}"
fi fi
printf " %b %bRetrieval of supported OS list failed. %s. %b\\n" "${CROSS}" "${COL_LIGHT_RED}" "${errStr}" "${COL_NC}" printf " %b %bRetrieval of supported OS list failed. %s. %b\\n" "${CROSS}" "${COL_LIGHT_RED}" "${errStr}" "${COL_NC}"
printf " %bUnable to determine if the detected OS (%s %s) is supported%b\\n" "${COL_LIGHT_RED}" "${detected_os^}" "${detected_version}" "${COL_NC}" printf " %bUnable to determine if the detected OS (%s %s) is supported%b\\n" "${COL_LIGHT_RED}" "${detected_os^}" "${detected_version}" "${COL_NC}"
printf " Possible causes for this include:\\n"
printf " - Firewall blocking certain DNS lookups from Pi-hole device\\n"
printf " - ns1.pi-hole.net being blocked (required to obtain TXT record from versions.pi-hole.net containing supported operating systems)\\n"
printf " - Other internet connectivity issues\\n"
else else
printf " %b %bUnsupported OS detected: %s %s%b\\n" "${CROSS}" "${COL_LIGHT_RED}" "${detected_os^}" "${detected_version}" "${COL_NC}" printf " %b %bUnsupported OS detected: %s %s%b\\n" "${CROSS}" "${COL_LIGHT_RED}" "${detected_os^}" "${detected_version}" "${COL_NC}"
printf " If you are seeing this message and you do have a supported OS, please contact support.\\n" printf " If you are seeing this message and you do have a supported OS, please contact support.\\n"