* ShellCommand: Fix main()

This commit is contained in:
zzz
2008-10-19 21:46:04 +00:00
parent af630e9559
commit 06be4515e4

View File

@ -344,13 +344,8 @@ public class ShellCommand {
System.err.println("Usage: ShellCommand commandline");
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 {
cmd.executeSilent(command.toString());
Runtime.getRuntime().exec(args);
} catch (IOException ioe) { ioe.printStackTrace(); }
return;
}