diff --git a/README.md b/README.md index 7195e2a..37ad6ed 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,7 @@ These files provide a simple bash script for quickly deploying multiple octoprin * Restart all non-template instances from the command line: `sudo octoprint_deploy/octoprint_deploy.sh restart_all` * Change udev rules for an instance with `sudo octoprint_deploy/octoprint_deploy.sh replace` # Recent Changes -* Added webcam restart to system commands during +* Added webcam restart to system commands during camera addition. * Admin user and first run wizards during Prepare System. * Better uuid uniquification * ArchLinux support diff --git a/octoprint_deploy.sh b/octoprint_deploy.sh index 0459da1..3c09516 100755 --- a/octoprint_deploy.sh +++ b/octoprint_deploy.sh @@ -363,9 +363,9 @@ add_camera() { if [ -z "$INSTANCE" ]; then PS3='Select instance to add camera to: ' readarray -t options < <(cat /etc/octoprint_instances | sed -n -e 's/^instance:\([[:alnum:]]*\) .*/\1/p') + options+=("Quit") #Not yet check to see if instance already has a camera select camopt in "${options[@]}" - options+=("Quit") do if [ "$camopt" == generic ]; then echo "Don't add cameras to the template instance."