mirror of
https://github.com/TRaSH-Guides/Guides.git
synced 2026-05-20 00:08:38 -05:00
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.
This commit is contained in:
@@ -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:**
|
||||
|
||||
Reference in New Issue
Block a user