From d7e3a7c660cbb23a3e15c10bd504e0fa939ffebc Mon Sep 17 00:00:00 2001 From: paukstelis Date: Wed, 6 Jul 2022 20:10:35 -0400 Subject: [PATCH] add quit to remove instance --- octoprint_deploy.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/octoprint_deploy.sh b/octoprint_deploy.sh index 527a99a..bcf9a2f 100755 --- a/octoprint_deploy.sh +++ b/octoprint_deploy.sh @@ -470,8 +470,12 @@ remove_instance() { echo 'Do not remove the generic instance!' | log PS3='Select instance number to remove: ' readarray -t options < <(cat /etc/octoprint_instances | sed -n -e 's/^instance:\([[:graph:]]*\) port:.*/\1/p') + options+=("Quit") select opt in "${options[@]}" do + if [ "$opt" == Quit ] || [ "$opt" == generic ]; then + main_menu + fi echo "Selected instance to remove: $opt" | log break done