mirror of
https://github.com/freedbygrace/PSOPNSenseAPI.git
synced 2026-08-07 09:23:17 +00:00
Improve PSM1 file: use = for assignment and provide more detailed verbose output
This commit is contained in:
@@ -7,8 +7,8 @@ $dllFiles = Get-ChildItem -Path $libPath -Filter "*.dll"
|
|||||||
foreach ($dll in $dllFiles) {
|
foreach ($dll in $dllFiles) {
|
||||||
try {
|
try {
|
||||||
$dllBytes = [System.IO.File]::ReadAllBytes($dll.FullName)
|
$dllBytes = [System.IO.File]::ReadAllBytes($dll.FullName)
|
||||||
[System.Reflection.Assembly]::Load($dllBytes) | Out-Null
|
$Null = [System.Reflection.Assembly]::Load($dllBytes)
|
||||||
Write-Verbose "Loaded assembly: $($dll.Name)"
|
Write-Verbose "Attempting to load assembly: $($dll.FullName)"
|
||||||
}
|
}
|
||||||
catch {
|
catch {
|
||||||
Write-Warning "Failed to load assembly $($dll.Name): $_"
|
Write-Warning "Failed to load assembly $($dll.Name): $_"
|
||||||
|
|||||||
Reference in New Issue
Block a user