Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/hakchi2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2018-04-10 14:07:25 +0300
committerAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2018-04-10 14:07:25 +0300
commitd317dcc9a673c6928ca61efc8e34fe2618b90215 (patch)
tree4169c0ff17e2bca09fd2c0278d2525d7be19edde /Clovershell
parentf7598533f7629330cb0c8a3e85da02e590badfc0 (diff)
Some fixes
Diffstat (limited to 'Clovershell')
-rw-r--r--Clovershell/ClovershellConnection.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/Clovershell/ClovershellConnection.cs b/Clovershell/ClovershellConnection.cs
index ec136b95..aafe3a37 100644
--- a/Clovershell/ClovershellConnection.cs
+++ b/Clovershell/ClovershellConnection.cs
@@ -636,7 +636,10 @@ namespace com.clusterrr.clovershell
var stdOut = new MemoryStream();
Execute(command, null, stdOut, null, timeout, throwOnNonZero);
var buff = stdOut.ToArray();
- return Encoding.UTF8.GetString(buff).Trim();
+#if VERY_DEBUG
+ Debug.WriteLine($"Output for {command}: {Encoding.UTF8.GetString(buff)}");
+#endif
+ return Encoding.UTF8.GetString(buff).Trim(new char[] { ' ', '\t', '\r', '\n' });
}
public int Execute(string command, Stream stdin = null, Stream stdout = null, Stream stderr = null, int timeout = 0, bool throwOnNonZero = false)