Commit 69535844 authored by Viuginov Nickolay's avatar Viuginov Nickolay
Browse files

Revert "`uname -s` works unstable on windows"

This reverts commit cc49f487
parent 0d69a793
Branches unavailable Tags unavailable
No related merge requests found
Showing with 5 additions and 0 deletions
+5 -0
......@@ -95,6 +95,10 @@ public abstract class AttachOSHandler {
GeneralCommandLine getOsCommandLine = new GeneralCommandLine("uname", "-s");
final String osString = host.getProcessOutput(getOsCommandLine).getStdout().trim();
if(osString.startsWith("MSYS")) {
return OSType.WINDOWS;
}
OSType osType;
switch (osString) {
......@@ -118,6 +122,7 @@ public abstract class AttachOSHandler {
public enum OSType {
LINUX,
MACOSX,
WINDOWS,
UNKNOWN
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment