From: Edward Delaporte Date: Mon, 15 Mar 2021 17:46:34 +0000 (-0500) Subject: Fix for Windows detection in profile. X-Git-Url: https://us-delaporte.pagekite.me/gitweb/dotfiles.git/commitdiff_plain/88233b4719d92d6153c31a407225aeb7199f5ebf Fix for Windows detection in profile. --- diff --git a/Microsoft.PowerShell_profile.ps1 b/Microsoft.PowerShell_profile.ps1 index 31b22ad..4066948 100644 --- a/Microsoft.PowerShell_profile.ps1 +++ b/Microsoft.PowerShell_profile.ps1 @@ -9,7 +9,7 @@ # $env:PSModulePath = $env:PSModulePath.Replace("\\ad.uillinois.edu\techsvc\home\$($ENV:USERNAME)\Documents\PowerShell\Modules;",'') # No longer needed in PowerShell 7 -if($IsWindows -eq "") { +if(-Not $IsWindows) { # Bootstrap for older PowerShell Write-Host "***Bootstrapped Is Windows for older PowerShell***" $IsWindows = ($env:OS -eq "Windows_NT")