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..."