mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-12-23 21:30:17 +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
1 changed files with 2 additions and 1 deletions
|
@ -396,6 +396,7 @@ os_check() {
|
|||
|
||||
if [ "${digReturnCode}" -ne 0 ]; then
|
||||
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 response: ${response}"
|
||||
log_write "${CROSS} Error: ${COL_RED}dig command failed - Unable to check OS${COL_NC}"
|
||||
|
@ -437,7 +438,7 @@ os_check() {
|
|||
fi
|
||||
|
||||
# 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 "${finalmsg}"
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue