fix group additions

This commit is contained in:
paukstelis
2023-06-26 19:56:45 -04:00
parent 8d57a478be
commit 829de78794
4 changed files with 6 additions and 3 deletions

View File

@@ -20,7 +20,7 @@ detect_camera() {
fi
sleep 1
done
readarray -t c2 < <(ls -1 /dev/v4l/by-id/*index0)
readarray -t c2 < <(ls -1 /dev/v4l/by-id/*index0 2>/dev/null)
#https://stackoverflow.com/questions/2312762
#TODO: what if there is more than one element?
BYIDCAM=(`echo ${c2[@]} ${c1[@]} | tr ' ' '\n' | sort | uniq -u `)