From 72d230706a1d0ab0d51f92f3779198861d8b8119 Mon Sep 17 00:00:00 2001 From: MasterDraco Date: Fri, 7 Mar 2025 08:44:00 +0000 Subject: [PATCH] Fix log command not found error in main-installer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Move utils-module.sh sourcing before any log function calls - Remove duplicate sourcing line 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- main-installer.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/main-installer.sh b/main-installer.sh index 6151d18..a23cf57 100755 --- a/main-installer.sh +++ b/main-installer.sh @@ -21,6 +21,9 @@ NC='\033[0m' # No Color # Get current directory SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" +# Source the utils module first to make the log function available +source "${SCRIPT_DIR}/modules/utils-module.sh" + # Print header echo -e "${BOLD}==================================================${NC}" echo -e "${BOLD} Transmission RSS Manager Installer ${NC}" @@ -89,8 +92,7 @@ for module in "${REQUIRED_MODULES[@]}"; do fi done -# Source the module files -source "${SCRIPT_DIR}/modules/utils-module.sh" # Load utilities first for logging +# Source the remaining module files source "${SCRIPT_DIR}/modules/config-module.sh" source "${SCRIPT_DIR}/modules/dependencies-module.sh" source "${SCRIPT_DIR}/modules/service-setup-module.sh"