Version 1.5B
This commit is contained in:
@@ -101,22 +101,25 @@ function Import-InstallerModules {
|
|||||||
foreach($Module in $Modules)
|
foreach($Module in $Modules)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
$Path =vJoin-Path $Script:ModulePath $Module
|
$Path =vJoin-Path $Script:ModulePath $Module
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if(Test-Path $Path)
|
if(Test-Path $Path)
|
||||||
{
|
{
|
||||||
Import-Module $Path -Force
|
|
||||||
|
Write-Host "Lade Modul: $Path" -ForegroundColor Cyan
|
||||||
|
|
||||||
|
Import-Module `
|
||||||
|
$Path `
|
||||||
|
-Force `
|
||||||
|
-Verbose `
|
||||||
|
-ErrorAction Stop
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
||||||
throw `
|
throw `
|
||||||
|
|
||||||
"Modul nicht gefunden: $Path"
|
"Modul nicht gefunden: $Path"
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user