* ShellCommand: Fix main()
This commit is contained in:
@ -344,13 +344,8 @@ public class ShellCommand {
|
|||||||
System.err.println("Usage: ShellCommand commandline");
|
System.err.println("Usage: ShellCommand commandline");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
ShellCommand cmd = new ShellCommand();
|
|
||||||
StringBuffer command = new StringBuffer(64);
|
|
||||||
for (int i = 0; i < args.length; i++) {
|
|
||||||
command.append("\"").append(args[i]).append("\" ");
|
|
||||||
}
|
|
||||||
try {
|
try {
|
||||||
cmd.executeSilent(command.toString());
|
Runtime.getRuntime().exec(args);
|
||||||
} catch (IOException ioe) { ioe.printStackTrace(); }
|
} catch (IOException ioe) { ioe.printStackTrace(); }
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user