1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-12 02:35:37 +02:00

Bug 160202 Remote shell dies

This commit is contained in:
Kushal Munir 2006-10-27 22:43:23 +00:00
parent 2672943e2e
commit fea1a3b57f

View file

@ -93,17 +93,24 @@ public class SshServiceCommandShell extends ServiceCommandShell implements ISyst
gotCommand = true; gotCommand = true;
} else { } else {
try { try {
parsedMsg = _patterns.matchLine(line);
if ((_curCommand == null) || (!_curCommand.equals("ls"))) {
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);
} }