From cac6bd410a443425350ea5f2268b92e72ae5cfb2 Mon Sep 17 00:00:00 2001 From: James Steele Date: Sat, 15 May 2021 21:59:52 +0100 Subject: [PATCH] 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 --- aci/login/helper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aci/login/helper.go b/aci/login/helper.go index 2a5ec13f4..dd44b11e7 100644 --- a/aci/login/helper.go +++ b/aci/login/helper.go @@ -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 {