I'm using the filebot AMC script with the exec option. However I've found that when operating on files that have a '(' in their filename (as is common with movies for the year) then the '(' is treated like a shell command and an error is thrown. If I quote the file, then filebot gives an error, but it otherwise seems to work. Examples below:
When running filebot with:
Code: Select all
-script fn:amc --def exec="script.sh {file}"
Code: Select all
sh: 1: Syntax error: "(" unexpected
If I add single quotes around the filename like:
Code: Select all
-script fn:amc --def exec="script.sh '{file}'"
Code: Select all
Bad exec value: script.sh '{file}'
I don't understand why when not quoting the file filebot is treating the filename as a shell command. Is there a way to prevent this? Additionally, when quoting the file, why does filebot print an error? It seems unnecessary, as the script is still called correctly and everything seems to work as expected. Am I missing something?
Thanks.