diff --git a/libs/hwhandler.sh b/libs/hwhandler.sh index 0b0db78b..f19cfb82 100755 --- a/libs/hwhandler.sh +++ b/libs/hwhandler.sh @@ -114,7 +114,7 @@ list_picam_controls() { local prefix prefix="$(date +'[%D %T]') crowsnest:" log_msg "'libcamera' device controls :" - while read -r i; do + while IFS= read -r i; do if [[ ! "${i}" =~ "INFO" ]]; then printf "%s\t\t%s\n" "${prefix}" "${i}" >>"${CROWSNEST_LOG_PATH}" fi