From f07f417c65280d4930da9d39df02ca02e299f398 Mon Sep 17 00:00:00 2001 From: BassT <30832786+BassT23@users.noreply.github.com> Date: Mon, 2 Dec 2024 06:32:05 +0100 Subject: [PATCH] fix #164 --- update.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/update.sh b/update.sh index 9e4f227..3dfaa32 100644 --- a/update.sh +++ b/update.sh @@ -9,7 +9,7 @@ # shellcheck disable=SC2317 # shellcheck disable=SC2320 -VERSION="4.2" +VERSION="4.2.1" # Variable / Function LOCAL_FILES="/etc/ultimate-updater" @@ -704,8 +704,7 @@ UPDATE_VM () { fi SSH_CONNECTION=true OS_BASE=$(qm config "$VM" | grep ostype) - IS_TEMPLATE=$(qm config "$VM" | grep template) - if [[ "$IS_TEMPLATE" =~ 1 ]]; then + if (qm config "$VM" | grep template); then echo -e "${OR}$VM is a template - skipping the update${CL}\n" return fi