don't return script arguments in Run-Script func
This commit is contained in:
@@ -130,7 +130,7 @@ Function Run-Script {
|
||||
Catch { LogErr $_.Exception.Message ; Exit }
|
||||
Try { $ScriptBlock = [Scriptblock]::Create($Script) }
|
||||
Catch { LogErr $_.Exception.Message ; Exit }
|
||||
LogMsg "Executing: ${LivePSScript}.ps1 ${Arguments}"
|
||||
LogMsg "Executing: ${LivePSScript}.ps1"
|
||||
Try { Invoke-Command -ScriptBlock $ScriptBlock -ArgumentList $Arguments }
|
||||
Catch { LogErr $_.Exception.Message ; Exit }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user