I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 06be4515 authored by zzz's avatar zzz
Browse files

* ShellCommand: Fix main()

parent af630e95
No related branches found
No related tags found
No related merge requests found
...@@ -344,13 +344,8 @@ public class ShellCommand { ...@@ -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;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment