Compare commits
2
Commits
bcd8cc6bb4
...
f99a315ed9
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f99a315ed9 | ||
|
|
7c848db363 |
@@ -101,22 +101,25 @@ function Import-InstallerModules {
|
||||
foreach($Module in $Modules)
|
||||
{
|
||||
|
||||
|
||||
$Path =vJoin-Path $Script:ModulePath $Module
|
||||
|
||||
|
||||
|
||||
if(Test-Path $Path)
|
||||
{
|
||||
Import-Module $Path -Force
|
||||
|
||||
Write-Host "Lade Modul: $Path" -ForegroundColor Cyan
|
||||
|
||||
Import-Module `
|
||||
$Path `
|
||||
-Force `
|
||||
-Verbose `
|
||||
-ErrorAction Stop
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
throw `
|
||||
|
||||
"Modul nicht gefunden: $Path"
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user