fix camera port detection (#99)

This commit is contained in:
paukstelis
2023-07-02 09:34:01 -04:00
committed by GitHub
parent 2b65e03a98
commit a3b4b97c2d

View File

@@ -220,9 +220,9 @@ add_camera() {
echo echo
fi fi
CAMPORT=$(tail -1 /etc/octoprint_cameras 2>/dev/null | sed -n -e 's/^.*\(port:\) \(.*\)/\2/p') CAMPORT=$(tail -1 /etc/octoprint_cameras 2>/dev/null | sed -n -e 's/^.*port:\([[:graph:]]*\) \(.*\)/\1/p')
if [ -z "$CAMPORT" ]; then if [ -z "$CAMPORT" ]; then
CAMPORT=8000 CAMPORT=8000
fi fi