build: bump nix from 0.23.1 to 0.24.1 (#3925)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit is contained in:
David Knaack
2022-04-26 15:14:51 +02:00
committed by GitHub
parent 5174c9a067
commit d4d84a592c
3 changed files with 21 additions and 5 deletions
+6 -1
View File
@@ -372,7 +372,12 @@ fn git_status_wsl(context: &Context, conf: &GitStatusConfig) -> Option<String> {
// Ensure this is WSL
// This is lowercase in WSL1 and uppercase in WSL2, just skip the first letter
if !uname().release().contains("icrosoft") {
if !uname()
.ok()?
.release()
.to_string_lossy()
.contains("icrosoft")
{
return None;
}