Skip to content

Commit 9dba7be

Browse files
authored
[Automated] Merged develop into target master
2 parents 424954d + 3d23107 commit 9dba7be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/hwhandler.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ detect_libcamera() {
6262
local avail
6363
if [[ "$(is_raspberry_pi)" = "1" ]] &&
6464
[[ -x "$(command -v libcamera-hello)" ]]; then
65-
avail="$(libcamera-hello --list-cameras | grep -c "Available")"
65+
avail="$(libcamera-hello --list-cameras | grep -c "Available" || echo "0")"
6666
if [[ "${avail}" = "1" ]]; then
6767
get_libcamera_path | wc -l
6868
else

0 commit comments

Comments
 (0)