From 1bb32bbc9409d00e250f4848e371812f4c57895d Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Tue, 27 Jan 2026 13:39:57 +0100 Subject: [PATCH] fix syntax --- misc/build.func | 1 + misc/core.func | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/misc/build.func b/misc/build.func index 7c431dc99..3863a6d8a 100644 --- a/misc/build.func +++ b/misc/build.func @@ -4744,6 +4744,7 @@ create_lxc_container() { msg_error "Template still not found after version change" exit 220 } + fi else msg_error "No ${PCT_OSTYPE} templates available" exit 220 diff --git a/misc/core.func b/misc/core.func index 1aa910c1c..36356ca52 100644 --- a/misc/core.func +++ b/misc/core.func @@ -834,7 +834,7 @@ is_unattended() { # Primary: Check MODE variable (case-insensitive) local mode="${MODE:-${mode:-}}" mode="${mode,,}" # lowercase - + case "$mode" in default|1) return 0 @@ -857,15 +857,15 @@ is_unattended() { return 1 ;; esac - + # Legacy fallbacks for compatibility [[ "${PHS_SILENT:-0}" == "1" ]] && return 0 [[ "${var_unattended:-}" =~ ^(yes|true|1)$ ]] && return 0 [[ "${UNATTENDED:-}" =~ ^(yes|true|1)$ ]] && return 0 - + # No TTY available = unattended [[ ! -t 0 ]] && return 0 - + # Default: interactive return 1 }