diff --git a/source/net/sourceforge/filebot/cli/ScriptShell.lib.groovy b/source/net/sourceforge/filebot/cli/ScriptShell.lib.groovy index 493600d0..39e3eb8f 100644 --- a/source/net/sourceforge/filebot/cli/ScriptShell.lib.groovy +++ b/source/net/sourceforge/filebot/cli/ScriptShell.lib.groovy @@ -99,11 +99,11 @@ Object.metaClass.applyTextTemplate = { template -> new GStringTemplateEngine().c // Shell helper import static com.sun.jna.Platform.* -def execute(String... args) { - def cmd = args.toList() +def execute(Object... args) { + def cmd = args.toList()*.toString() if (isWindows()) { // normalize file separator for windows and run with cmd so any executable in PATH will just work - cmd = ['cmd', '/c'] + cmd*.replace('/','\\') + cmd = ['cmd', '/c'] + cmd } if (!_args.trustScript) {