From: Edward Delaporte Date: Tue, 30 Nov 2021 22:28:47 +0000 (-0600) Subject: Clear error from .md file X-Git-Url: https://apps.delaporte.us/gitweb/dotfiles.git/commitdiff_plain/3551e2079248ca3eb66f666ddfa48b6ea8b3ba44?ds=inline Clear error from .md file --- diff --git a/Microsoft.PowerShell_profile.ps1 b/Microsoft.PowerShell_profile.ps1 index 6d88b6a..7e159fd 100644 --- a/Microsoft.PowerShell_profile.ps1 +++ b/Microsoft.PowerShell_profile.ps1 @@ -52,8 +52,10 @@ if($modPaths.length -eq 0){ } $modPaths | ForEach-Object { $fileName = $_.FullName - Import-Module $fileName - Write-Host ">> Loaded $fileName" + if($filename -Like "*.psm1") { + Import-Module $fileName + Write-Host ">> Loaded $fileName" + } }