feat: refactor header content retrieval in LocalAGI installation script

This commit is contained in:
John Doe
2026-03-04 00:23:38 -05:00
parent 63615ded07
commit 2d81660dc5

View File

@@ -17,7 +17,13 @@ catch_errors
setting_up_container setting_up_container
network_check network_check
update_os update_os
header_info "$APP" header_content=""
if declare -f get_header >/dev/null 2>&1; then
header_content=$(get_header 2>/dev/null || true)
fi
if [[ -n "$header_content" ]]; then
echo "$header_content"
fi
# Decide which runtime backend label to use for LocalAGI. # Decide which runtime backend label to use for LocalAGI.
# Priority: # Priority: