mirror of
https://github.com/docker/compose.git
synced 2026-08-28 04:18:05 +00:00
Support Azure login page on WSL 1
The format reported by `/proc/version` differs between versions of WSL; both report the text "Microsoft", albeit in different cases. Signed-off-by: James Steele <james@kevel.org>
This commit is contained in:
parent
0a02f7d108
commit
cac6bd410a
1 changed files with 1 additions and 1 deletions
|
|
@ -122,7 +122,7 @@ func isWsl() bool {
|
|||
return false
|
||||
}
|
||||
|
||||
return strings.Contains(string(b), "microsoft")
|
||||
return strings.Contains(strings.ToLower(string(b)), "microsoft")
|
||||
}
|
||||
|
||||
func randomString(prefix string, length int) string {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue