mirror of
https://github.com/mitb-archive/filebot
synced 2024-12-23 16:28:51 -05:00
* fix unix argument parsing issues
@see http://www.filebot.net/forums/viewtopic.php?f=4&p=4633
This commit is contained in:
parent
86723cb3bf
commit
a1451ca807
@ -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
|
||||
|
@ -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}[.]
|
||||
|
Loading…
Reference in New Issue
Block a user