From 407a7074e61cb8842a640bf57d8a4277c27d5607 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Sun, 5 Feb 2017 16:04:10 +0800 Subject: [PATCH] Run --def exec commands via powershell -Command instead of cmd /c (in order to support '...' and simple curl calls and gain a small amount of cross-platform compatibility) --- source/net/filebot/cli/ScriptShellBaseClass.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/net/filebot/cli/ScriptShellBaseClass.java b/source/net/filebot/cli/ScriptShellBaseClass.java index 8824b3b1..eb15d195 100644 --- a/source/net/filebot/cli/ScriptShellBaseClass.java +++ b/source/net/filebot/cli/ScriptShellBaseClass.java @@ -292,9 +292,9 @@ public abstract class ScriptShellBaseClass extends Script { List cmd = new ArrayList(); if (Platform.isWindows()) { - // normalize file separator for windows and run with cmd so any executable in PATH will just work - cmd.add("cmd"); - cmd.add("/c"); + // normalize file separator for windows and run with powershell so any executable in PATH will just work + cmd.add("powershell"); + cmd.add("-Command"); } else if (args.length == 1) { // make unix shell parse arguments cmd.add("sh");