mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-05-31 21:14:43 +00:00
feat(update-apps): enhance error handling for unattended mode in resource checks
Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
@@ -868,6 +868,12 @@ get_header() {
|
||||
# - Returns silently if header not available
|
||||
# ------------------------------------------------------------------------------
|
||||
header_info() {
|
||||
# Guard against printing the header twice in the same session (e.g. when
|
||||
# the ct script calls header_info at global scope AND again inside
|
||||
# update_script()).
|
||||
[[ "${_HEADER_SHOWN:-0}" == "1" ]] && return 0
|
||||
_HEADER_SHOWN=1
|
||||
|
||||
local app_name=$(echo "${APP,,}" | tr -d ' ')
|
||||
local header_content
|
||||
|
||||
|
||||
Reference in New Issue
Block a user