From e5a8ba4f46fb0262e63facbc230e2547bed20a07 Mon Sep 17 00:00:00 2001 From: paukstelis Date: Wed, 11 Oct 2023 10:19:01 -0400 Subject: [PATCH] fix camera writing when only byid is found --- cameras.sh | 4 +++- menu.sh | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/cameras.sh b/cameras.sh index 6c5712f..e8add56 100755 --- a/cameras.sh +++ b/cameras.sh @@ -205,7 +205,9 @@ add_camera() { echo -e "Camera will be setup with physical USB address of ${cyan}$TEMPUSBCAM.${white}" echo "The camera will have to stay plugged into this location." USBCAM=$TEMPUSBCAM - else + fi + #serial number + if [ -n "$CAM" ]; then echo -e "Camera detected with serial number: ${cyan}$CAM ${white}" check_sn "$CAM" fi diff --git a/menu.sh b/menu.sh index 0d89d42..2050c82 100644 --- a/menu.sh +++ b/menu.sh @@ -8,7 +8,7 @@ cyan=$(echo -en "\e[96m") yellow=$(echo -en "\e[93m") main_menu() { - VERSION=1.0.4 + VERSION=1.0.5 #reset UDEV='' TEMPUSB=''