From cc73f42b6b0495a1278d156bca379cdd669fdb37 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Tue, 29 Nov 2011 06:29:05 +0000 Subject: [PATCH] * fix shell call --- source/net/sourceforge/filebot/cli/ScriptShell.lib.groovy | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; }