Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Intellij Community
Commits
69535844
Commit
69535844
authored
6 years ago
by
Viuginov Nickolay
Browse files
Options
Download
Email Patches
Plain Diff
Revert "`uname -s` works unstable on windows"
This reverts commit
cc49f487
parent
0d69a793
Branches unavailable
Tags unavailable
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
platform/xdebugger-impl/src/com/intellij/xdebugger/attach/osHandlers/AttachOSHandler.java
+5
-0
...intellij/xdebugger/attach/osHandlers/AttachOSHandler.java
with
5 additions
and
0 deletions
+5
-0
platform/xdebugger-impl/src/com/intellij/xdebugger/attach/osHandlers/AttachOSHandler.java
+
5
-
0
View file @
69535844
...
...
@@ -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
}
}
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help