mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-04 23:55:26 +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;
|
||||
} else {
|
||||
try {
|
||||
parsedMsg = _patterns.matchLine(line);
|
||||
|
||||
if ((_curCommand == null) || (!_curCommand.equals("ls"))) {
|
||||
parsedMsg = _patterns.matchLine(line);
|
||||
}
|
||||
}
|
||||
catch (Throwable e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
RemoteOutput output = null;
|
||||
|
||||
String type = "stdout"; //$NON-NLS-1$
|
||||
|
||||
if (parsedMsg != null) {
|
||||
type = parsedMsg.type;
|
||||
}
|
||||
|
||||
if (event.isError()) {
|
||||
output = new RemoteError(this, type);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue