]> apps.delaporte.us Git - dotfiles.git/blobdiff - Microsoft.PowerShell_profile.ps1
Add usage examples.
[dotfiles.git] / Microsoft.PowerShell_profile.ps1
index 7a8369632609afdc3a8758979bfd629c4702dd10..8b3442fab32afd904615f909d1ca5e3525223af3 100644 (file)
@@ -24,6 +24,9 @@ if($IsWindows -eq "") {
 # Import some home grown PowerShell modules, if they are installed.
 
 $modPaths = Get-Childitem -Path "c:\src\dotfiles\psmodules"
 # Import some home grown PowerShell modules, if they are installed.
 
 $modPaths = Get-Childitem -Path "c:\src\dotfiles\psmodules"
+if($modPaths.length -eq 0){
+       Write-Host "No modules found."
+}
 $modPaths | ForEach-Object {
 #    $_ | Format-Table
   if(Test-Path -Path $_) {
 $modPaths | ForEach-Object {
 #    $_ | Format-Table
   if(Test-Path -Path $_) {