* fix shell call
This commit is contained in:
parent
cfb6512063
commit
cc73f42b6b
|
@ -41,8 +41,9 @@ List.metaClass.mapByExtension = { mapByExtension(delegate) }
|
||||||
// Shell helper
|
// Shell helper
|
||||||
import static com.sun.jna.Platform.*;
|
import static com.sun.jna.Platform.*;
|
||||||
|
|
||||||
def run(String... cmd) {
|
def execute(String... args) {
|
||||||
cmd = cmd.toList()
|
def cmd = args.toList()
|
||||||
|
|
||||||
if (isWindows()) {
|
if (isWindows()) {
|
||||||
cmd = ["cmd", "/c"] + cmd;
|
cmd = ["cmd", "/c"] + cmd;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue