1
0
mirror of https://github.com/pi-hole/pi-hole synced 2024-12-22 06:48:07 +00:00

Use the correct variable digReturnCode

also use INFO instead of CROSS, because it's not an error.

Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
This commit is contained in:
RD WebDesign 2022-12-06 15:42:36 -03:00
parent 67f04787d6
commit b4349b41ce
No known key found for this signature in database
GPG Key ID: AE3C7FC910687F33

View File

@ -397,8 +397,8 @@ os_check() {
log_write "${INFO} dig return code: ${digReturnCode}"
log_write "${INFO} dig response: ${response}"
if [ "${response}" -ne 0 ]; then
log_write "${CROSS} Distro: ${COL_RED}${detected_os^}${COL_NC}"
if [ "${digReturnCode}" -ne 0 ]; then
log_write "${INFO} Distro: ${COL_RED}${detected_os^}${COL_NC}"
log_write "${CROSS} Error: ${COL_RED}dig command failed - Unable to check OS${COL_NC}"
else
IFS=" " read -r -a supportedOS < <(echo "${response}" | tr -d '"')