fix camera port detection (#99)
This commit is contained in:
1 parent
2b65e03a98
commit
a3b4b97c2d
1 file changed
+1
-1
+1
-1
@@ -221,7 +221,7 @@ add_camera() {
|
||||
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
|
||||
CAMPORT=8000
|
||||
|
||||
Reference in new issue
Block a user