From 0cd3a54b9618531ec7fd9e738c10d3e86636bd35 Mon Sep 17 00:00:00 2001 From: Simplemente3d <151493968+Simplemente3d@users.noreply.github.com> Date: Fri, 5 Jan 2024 07:29:07 -0600 Subject: [PATCH] Fix octoprint errors when trying to share uploads (#140) Co-authored-by: Enrique Munoz --- util.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/util.sh b/util.sh index dda72c1..9a33cbc 100644 --- a/util.sh +++ b/util.sh @@ -172,9 +172,9 @@ share_uploads() { fi echo #Remove Quit and Custom from array, is there a cleaner way? - unset 'options[-1]' - unset 'options[-1]' - for instance in "${options[@]}"; do + unset 'INSTANCE_ARR[-1]' + unset 'INSTANCE_ARR[-1]' + for instance in "${INSTANCE_ARR[@]}"; do $OCTOEXEC --basedir /home/$user/.$instance config set folder.uploads "$opt" done break