fix port increment issue (#88)

This commit is contained in:
paukstelis
2023-05-21 20:13:13 -04:00
committed by GitHub
parent 66de13b14f
commit aea4c30e3e

View File

@@ -511,13 +511,12 @@ add_camera() {
read CAMPORT read CAMPORT
if [ -z "$CAMPORT" ]; then if [ -z "$CAMPORT" ]; then
CAMPORT=$(tail -1 /etc/camera_ports) CAMPORT=$(tail -1 /etc/camera_ports)
fi
if [ -z "$CAMPORT" ]; then if [ -z "$CAMPORT" ]; then
CAMPORT=8000 CAMPORT=8000
fi fi
CAMPORT=$((CAMPORT+1)) CAMPORT=$((CAMPORT+1))
fi
if [ $CAMPORT -gt 7000 ]; then if [ $CAMPORT -gt 7000 ]; then
break break