Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Commit cac6bd4

Browse files
committed
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 <[email protected]>
1 parent 0a02f7d commit cac6bd4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aci/login/helper.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ func isWsl() bool {
122122
return false
123123
}
124124

125-
return strings.Contains(string(b), "microsoft")
125+
return strings.Contains(strings.ToLower(string(b)), "microsoft")
126126
}
127127

128128
func randomString(prefix string, length int) string {

0 commit comments

Comments
 (0)