From f2b217ad84f7ab2543d5671b36f31a3b63a4595d Mon Sep 17 00:00:00 2001 From: MasterDraco Date: Fri, 7 Mar 2025 11:46:33 +0000 Subject: [PATCH] Fix syntax error in main-installer.sh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixed a syntax error in the update script setup section of main-installer.sh: - Fixed incorrect brace closure (using '}' instead of 'fi') - Fixed indentation for better code readability - Ensured proper nesting of if conditions - This should resolve the error during installation when copying module files 💡 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- main-installer.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/main-installer.sh b/main-installer.sh index 989e832..b080b8c 100755 --- a/main-installer.sh +++ b/main-installer.sh @@ -408,8 +408,8 @@ if [ ! -f "${SCRIPT_DIR}/scripts/update.sh" ]; then cp "${SCRIPT_DIR}/update.sh" "${SCRIPT_DIR}/scripts/update.sh" log "INFO" "Copied update script from root to scripts directory" else - # Create the update script since it doesn't exist - cat > "${SCRIPT_DIR}/scripts/update.sh" << 'EOL' + # Create the update script since it doesn't exist + cat > "${SCRIPT_DIR}/scripts/update.sh" << 'EOL' #!/bin/bash # Transmission RSS Manager - Update Script @@ -496,10 +496,10 @@ echo -e "Updated from version $CURRENT_VERSION to $NEW_VERSION" echo -e "Changes will take effect immediately." EOL - chmod +x "${SCRIPT_DIR}/scripts/update.sh" - log "INFO" "Created update script: ${SCRIPT_DIR}/scripts/update.sh" + chmod +x "${SCRIPT_DIR}/scripts/update.sh" + log "INFO" "Created update script: ${SCRIPT_DIR}/scripts/update.sh" fi -} +fi # Step 8: Final setup and permissions log "INFO" "Finalizing setup..."