Skip to content

Commit

Permalink
Update IsN00bUser()
Browse files Browse the repository at this point in the history
  • Loading branch information
wtfsck committed Oct 29, 2015
1 parent ea28306 commit a0f12c4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions de4dot.cui/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,8 @@ static bool HasEnv(string name) {
static bool IsN00bUser() {
if (HasEnv("VisualStudioDir"))
return false;
if (HasEnv("SHELL"))
return false;
return HasEnv("windir") && !HasEnv("PROMPT");
}

Expand Down

0 comments on commit a0f12c4

Please sign in to comment.