* fix unix argument parsing issues

@see
http://www.filebot.net/forums/viewtopic.php?f=4&p=4633
This commit is contained in:
Reinhard Pointner 2013-04-30 13:33:09 +00:00
parent 86723cb3bf
commit a1451ca807
2 changed files with 6 additions and 2 deletions

View File

@ -139,11 +139,14 @@ def XML(bc) {
import com.sun.jna.Platform
def execute(Object... args) {
def cmd = args.length == 1 ? args[0] as String : args.collect{ it as String }
def cmd = args.collect{ it as String }
if (tryQuietly{ Platform.isWindows() }) {
if (Platform.isWindows()) {
// normalize file separator for windows and run with cmd so any executable in PATH will just work
cmd = ['cmd', '/c'] + cmd
} else if (cmd.size() == 1) {
// make unix shell parse arguments
cmd = ['sh', '-c'] + cmd
}
// run command and print output

View File

@ -7,6 +7,7 @@
[1-3]CD
[1-3]CDRip
[1-9].?of.?[1-9]
\bThe$
\d{2,4}.\b\d{2}.\b\d{2}.\b\d{2}.\b\d{2}
^(TV.)?(Show|Serie)[s]?
^[0-9]{1,2}[.]