fix unset for noserial
This commit is contained in:
@@ -59,6 +59,7 @@ These files provide a bash script for quickly deploying multiple octoprint insta
|
||||
* Change udev rules for an instance with `sudo octoprint_deploy/octoprint_deploy.sh replace`
|
||||
* Always a good idea to update octoprint_deploy from time-to-time with `git -C octoprint_deploy pull`
|
||||
# Recent Changes
|
||||
* Add 'noserial' command line option. Currently for cameras only, this will unset the serial number in cases where cameras are known to share a serial number.
|
||||
* Add detection for ch34x driver. This is used by Weedo printers and must be compiled separately.
|
||||
* Utility sub-menu for less used options.
|
||||
* Share Uploads option which will set the same upload directory for all instances.
|
||||
|
||||
@@ -390,7 +390,7 @@ add_camera() {
|
||||
if [ -z "$PI" ]; then
|
||||
detect_camera
|
||||
if [ -n "$NOSERIAL" ]; then
|
||||
unset $CAM
|
||||
unset CAM
|
||||
fi
|
||||
#Failed state. Nothing detected
|
||||
if [ -z "$CAM" ] && [ -z "$TEMPUSBCAM" ] ; then
|
||||
|
||||
Reference in New Issue
Block a user