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:
Adam Warner 2022-12-11 14:31:44 +00:00
parent 1550f29f06
commit fc83883934
No known key found for this signature in database
GPG key ID: 872950F3ECF2B173

View file

@ -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