We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 424954d + 3d23107 commit 9dba7beCopy full SHA for 9dba7be
libs/hwhandler.sh
@@ -62,7 +62,7 @@ detect_libcamera() {
62
local avail
63
if [[ "$(is_raspberry_pi)" = "1" ]] &&
64
[[ -x "$(command -v libcamera-hello)" ]]; then
65
- avail="$(libcamera-hello --list-cameras | grep -c "Available")"
+ avail="$(libcamera-hello --list-cameras | grep -c "Available" || echo "0")"
66
if [[ "${avail}" = "1" ]]; then
67
get_libcamera_path | wc -l
68
else
0 commit comments