diff --git a/source/net/sourceforge/filebot/cli/ScriptShell.lib.groovy b/source/net/sourceforge/filebot/cli/ScriptShell.lib.groovy index 913416f7..e7fb103b 100644 --- a/source/net/sourceforge/filebot/cli/ScriptShell.lib.groovy +++ b/source/net/sourceforge/filebot/cli/ScriptShell.lib.groovy @@ -139,7 +139,7 @@ def XML(bc) { import com.sun.jna.Platform def execute(Object... args) { - def cmd = args.collect{ it as String } + def cmd = (args as List).flatten().collect{ it as String } if (Platform.isWindows()) { // normalize file separator for windows and run with cmd so any executable in PATH will just work