mirror of
https://github.com/pi-hole/pi-hole
synced 2025-01-02 20:20:56 +00:00
Apply suggestions from code review
Co-authored-by: yubiuser <ckoenig@posteo.de> Signed-off-by: Adam Warner <github@adamwarner.co.uk>
This commit is contained in:
parent
1550f29f06
commit
fc83883934
@ -396,6 +396,7 @@ os_check() {
|
|||||||
|
|
||||||
if [ "${digReturnCode}" -ne 0 ]; then
|
if [ "${digReturnCode}" -ne 0 ]; then
|
||||||
log_write "${INFO} Distro: ${detected_os^}"
|
log_write "${INFO} Distro: ${detected_os^}"
|
||||||
|
log_write "${INFO} Version: ${detected_version}"
|
||||||
log_write "${CROSS} dig return code: ${COL_RED}${digReturnCode}${COL_NC}"
|
log_write "${CROSS} dig return code: ${COL_RED}${digReturnCode}${COL_NC}"
|
||||||
log_write "${CROSS} dig response: ${response}"
|
log_write "${CROSS} dig response: ${response}"
|
||||||
log_write "${CROSS} Error: ${COL_RED}dig command failed - Unable to check OS${COL_NC}"
|
log_write "${CROSS} Error: ${COL_RED}dig command failed - Unable to check OS${COL_NC}"
|
||||||
@ -437,7 +438,7 @@ os_check() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Print dig response and the final check result
|
# Print dig response and the final check result
|
||||||
log_write "${INFO} dig return code: ${COL_GREEN}${digReturnCode}${COL_NC}"
|
log_write "${TICK} dig return code: ${COL_GREEN}${digReturnCode}${COL_NC}"
|
||||||
log_write "${INFO} dig response: ${response}"
|
log_write "${INFO} dig response: ${response}"
|
||||||
log_write "${finalmsg}"
|
log_write "${finalmsg}"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user