1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-11-02 08:25:02 -04:00

* improved scripting

This commit is contained in:
Reinhard Pointner 2012-03-05 15:22:55 +00:00
parent 4df6fd4380
commit 0324798530

View File

@ -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) {