From 355b4c8c155d4a4d8d099013ab5b5feee0c8a729 Mon Sep 17 00:00:00 2001 From: Bauke Date: Wed, 24 Dec 2025 13:10:27 +0100 Subject: [PATCH] fix(downloaders): Update Fixing Run Errors script (#2574) * Add support for unlimited number of qBittorrent instances * Fixed issues sugested by sourcery-ai - Fixed the grep pipeline issue - Fixed the pipe delimiter issue in get_instance_details * Fix lint issues * Fix one more lint issue * Add Unraid notifications for configuration errors mover-tuning-start.sh: Full validation with Unraid notifications for configuration errors Shows detailed error messages with array lengths mover-tuning-end.sh: Basic validation (still checks for errors to prevent execution with bad config) Only logs to terminal, no Unraid notifications * Include .cfg files to the Fixing Run Errors command. mover-tuning.cfg also needs to have Unix line endings for it to work. * Update Fixing Run Errors script. Add chmod +x to the Fix Run Errors script so we are sure all scripts are executable. --- .../Tips/How-to-run-the-unRaid-mover-for-qBittorrent.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/Downloaders/qBittorrent/Tips/How-to-run-the-unRaid-mover-for-qBittorrent.md b/docs/Downloaders/qBittorrent/Tips/How-to-run-the-unRaid-mover-for-qBittorrent.md index 3749aaeaa..3c30aca26 100644 --- a/docs/Downloaders/qBittorrent/Tips/How-to-run-the-unRaid-mover-for-qBittorrent.md +++ b/docs/Downloaders/qBittorrent/Tips/How-to-run-the-unRaid-mover-for-qBittorrent.md @@ -125,10 +125,10 @@ chmod +x /mnt/user/appdata/qbt-mover/mover-tuning-end.sh After editing the scripts, make sure they use LF line endings (Unix format). If you edited the files on Windows, they may have CRLF line endings, which can cause errors. -Run the following command to convert all `.sh` and `.cfg` files to the correct format: +Run the following command to convert line endings in all .sh and .cfg files from Windows format (CRLF) to Unix format (LF), and make the scripts executable: ```bash -for file in *.sh *.cfg; do [ -f "$file" ] && sed -i 's/\r$//' "$file" && echo "Converted $file"; done +for file in *.sh *.cfg *.py; do [ -f "$file" ] && sed -i 's/\r$//' "$file" && echo "Converted $file"; done && chmod +x *.sh *.py 2>/dev/null ``` **How to use this command:**