From f928578abb5c6518eb14f4b65cd080b3d03213cd Mon Sep 17 00:00:00 2001 From: master3395 Date: Mon, 26 Jan 2026 20:54:07 +0100 Subject: [PATCH] Fix OS variable capture - use get_os_info() to properly retrieve values - Use eval with get_os_info() to capture OS variables - Ensures variables are properly set in current shell scope - Fixes issue where variables were detected but not available to install_dependencies() --- install.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 03baac2e0..c8dffe5c6 100644 --- a/install.sh +++ b/install.sh @@ -218,9 +218,13 @@ detect_operating_system() { print_status "$BLUE" "🔍 Detecting operating system..." if detect_os; then - # Variables are set by detect_os() in the sourced module + # Get OS information using get_os_info() to ensure we capture the values + # This outputs variable assignments that we can eval + eval $(get_os_info) + # Export them to ensure they're available to all functions export SERVER_OS OS_FAMILY PACKAGE_MANAGER ARCHITECTURE + print_status "$GREEN" "✅ OS detected: $SERVER_OS ($OS_FAMILY)" print_status "$GREEN" "✅ Package manager: $PACKAGE_MANAGER" print_status "$GREEN" "✅ Architecture: $ARCHITECTURE"