mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-08-14 19:23:24 +00:00
core: fix OS version fallback when the host catalog lacks the requested version & harden template validation (#16068)
This commit is contained in:
parent
7cee1cb96a
commit
895cc7fdcf
2 changed files with 119 additions and 141 deletions
|
|
@ -376,10 +376,11 @@ error_handler() {
|
|||
active_log="$BUILD_LOG"
|
||||
fi
|
||||
|
||||
# stderr: the trap can fire inside a $(...) capture that would eat this as data
|
||||
if [[ -n "$active_log" && -s "$active_log" ]]; then
|
||||
echo -e "\n${TAB}--- Last 20 lines of log ---"
|
||||
tail -n 20 "$active_log"
|
||||
echo -e "${TAB}-----------------------------------\n"
|
||||
echo -e "\n${TAB}--- Last 20 lines of log ---" >&2
|
||||
tail -n 20 "$active_log" >&2
|
||||
echo -e "${TAB}-----------------------------------\n" >&2
|
||||
fi
|
||||
|
||||
# ── Node.js heap OOM detection with actionable guidance ──
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue