From c85ff472d098c9a5d3c6a7f889eae7ce7346e3d5 Mon Sep 17 00:00:00 2001 From: CeeBeeEh Date: Thu, 17 Mar 2022 12:16:39 -0400 Subject: [PATCH] fixed incorrect bash flag to test if video device exists --- build/linux/start.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/build/linux/start.sh b/build/linux/start.sh index 94b5fcb..8f7e889 100755 --- a/build/linux/start.sh +++ b/build/linux/start.sh @@ -7,10 +7,11 @@ while getopts 'cd:h' opt; do case "$opt" in c) printf "Starting with camera devices\n" - test -f /dev/video0 && CAM0=--device=/dev/video0:/dev/video0 - test -f /dev/video1 && CAM1=--device=/dev/video1:/dev/video1 - test -f /dev/video2 && CAM2=--device=/dev/video2:/dev/video2 - test -f /dev/video3 && CAM3=--device=/dev/video3:/dev/video3 + test -e /dev/video0 && CAM0="--device=/dev/video0:/dev/video0" + test -e /dev/video1 && CAM1=--device=/dev/video1:/dev/video1 + test -e /dev/video2 && CAM2=--device=/dev/video2:/dev/video2 + test -e /dev/video3 && CAM3=--device=/dev/video3:/dev/video3 + echo $CAM0 $CAM1 $CAM2 $CAM3 ;; d) DATA_FOLDER="$OPTARG"