diff --git a/.github/linters/.markddown-lint.yml b/.github/linters/.markdown-lint.yml similarity index 100% rename from .github/linters/.markddown-lint.yml rename to .github/linters/.markdown-lint.yml diff --git a/README.md b/README.md index cdbb71b..8faf339 100644 --- a/README.md +++ b/README.md @@ -31,9 +31,9 @@ The syntax for the command-line is: Option|Argument|Description ---|---|--- -`-f`, `--file`|``|The full path and file name to a subtitle file. In Bazarr, you should use the `{{subtitles}}` variable. +`-f`, `--file`|``|The full path and filename to a subtitle file. In Bazarr, you should use the `{{subtitles}}` variable. `-d`, `--debug`|`[]`|Enables debug logging. Level is optional.
Default of 1 (low)
2 includes extra output -`-l`, `--log`|``|The log file name
Default of `/config/log/cleansubs.log` +`-l`, `--log`|``|The log filename
Default of `/config/log/cleansubs.log` `--help`| |Display help and exit. `--version`| |Display version and exit. @@ -63,7 +63,7 @@ By default, a separate log file is therefore created for script activity called: `/config/log/cleansubs.log` -This log must be inspected or downloaded outside of Bazarr. The log file name can be modified with the `--log` command-line option. +This log must be inspected or downloaded outside of Bazarr. The log filename can be modified with the `--log` command-line option. Script activity, including errors, will appear in both the script log and the native Bazarr log. @@ -72,7 +72,6 @@ Log rotation is performed with 2 log files of 512KB each being kept. ___ # Credits - This would not be possible without the following: [Bazarr](https://www.bazarr.media/ "Bazarr homepage") diff --git a/cleansubs.sh b/cleansubs.sh old mode 100644 new mode 100755 index ca6f04f..97b01f0 --- a/cleansubs.sh +++ b/cleansubs.sh @@ -243,6 +243,7 @@ export cleansubs_tempsub="$(mktemp -u -- "${cleansubs_file}.tmp.XXXXXX")" [ $cleansubs_debug -ge 1 ] && echo "Debug|Using temporary file \"$cleansubs_tempsub\"" | log #### BEGIN MAIN +# shellcheck disable=SC2002 cat "$cleansubs_file" | dos2unix | awk -v Debug=$cleansubs_debug \ -v SubTitle="$cleansubs_file" \ -v TempSub="$cleansubs_tempsub" \