mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-99154 (fix command)
This commit is contained in:
@@ -186,7 +186,7 @@ public class StartupUtil {
|
||||
try {
|
||||
String shell = System.getenv("SHELL");
|
||||
if (shell != null && new File(shell).canExecute()) {
|
||||
String[] command = {shell, "-l", "-c", "/usr/bin/printenv -0"};
|
||||
String[] command = {shell, "-l", "-c", "/usr/bin/printenv"};
|
||||
Process process = Runtime.getRuntime().exec(command);
|
||||
|
||||
InputStream input = process.getInputStream();
|
||||
@@ -194,7 +194,7 @@ public class StartupUtil {
|
||||
ByteArrayOutputStream lineBuf = new ByteArrayOutputStream();
|
||||
int b;
|
||||
while ((b = input.read()) >= 0) {
|
||||
if (b != 0) {
|
||||
if (b != '\n') {
|
||||
lineBuf.write(b);
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user