mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-12 10:45:37 +02:00
Bug 160202 Remote shell dies
This commit is contained in:
parent
2672943e2e
commit
fea1a3b57f
1 changed files with 8 additions and 1 deletions
|
@ -93,17 +93,24 @@ public class SshServiceCommandShell extends ServiceCommandShell implements ISyst
|
||||||
gotCommand = true;
|
gotCommand = true;
|
||||||
} else {
|
} else {
|
||||||
try {
|
try {
|
||||||
|
|
||||||
|
if ((_curCommand == null) || (!_curCommand.equals("ls"))) {
|
||||||
parsedMsg = _patterns.matchLine(line);
|
parsedMsg = _patterns.matchLine(line);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
catch (Throwable e) {
|
catch (Throwable e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
RemoteOutput output = null;
|
RemoteOutput output = null;
|
||||||
|
|
||||||
String type = "stdout"; //$NON-NLS-1$
|
String type = "stdout"; //$NON-NLS-1$
|
||||||
|
|
||||||
if (parsedMsg != null) {
|
if (parsedMsg != null) {
|
||||||
type = parsedMsg.type;
|
type = parsedMsg.type;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (event.isError()) {
|
if (event.isError()) {
|
||||||
output = new RemoteError(this, type);
|
output = new RemoteError(this, type);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue