From 92392cf151c208c16ee1b9adddf1adede680c054 Mon Sep 17 00:00:00 2001 From: paukstelis Date: Sun, 23 Oct 2022 09:28:34 -0400 Subject: [PATCH] don't copy over --- octoprint_deploy.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/octoprint_deploy.sh b/octoprint_deploy.sh index 7ca8b01..dafee11 100755 --- a/octoprint_deploy.sh +++ b/octoprint_deploy.sh @@ -1033,6 +1033,9 @@ sync_users() { #re-read to avoid the Quit readarray -t instances < <(cat /etc/octoprint_instances | sed -n -e 's/^instance:\([[:graph:]]*\) .*/\1/p') for instance in "${instances[@]}"; do + if [ "$instance" == "$opt" ]; then + continue + fi if [ "$instance" == generic ]; then sudo -u $user cp $userfile /home/$user/.octoprint/ else