From 97e060190768f143c5ff3ee41dc381569dae9036 Mon Sep 17 00:00:00 2001 From: paukstelis Date: Fri, 18 Nov 2022 20:24:50 -0500 Subject: [PATCH] fix unset for noserial --- README.md | 1 + octoprint_deploy.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c6dbbd5..c001df8 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/octoprint_deploy.sh b/octoprint_deploy.sh index f8c990c..76cbe7f 100755 --- a/octoprint_deploy.sh +++ b/octoprint_deploy.sh @@ -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