diff --git a/source/net/sourceforge/filebot/cli/ScriptShell.lib.groovy b/source/net/sourceforge/filebot/cli/ScriptShell.lib.groovy index 8ecced7f..bd993508 100644 --- a/source/net/sourceforge/filebot/cli/ScriptShell.lib.groovy +++ b/source/net/sourceforge/filebot/cli/ScriptShell.lib.groovy @@ -41,8 +41,9 @@ List.metaClass.mapByExtension = { mapByExtension(delegate) } // Shell helper import static com.sun.jna.Platform.*; -def run(String... cmd) { - cmd = cmd.toList() +def execute(String... args) { + def cmd = args.toList() + if (isWindows()) { cmd = ["cmd", "/c"] + cmd; }