Skip to content

Commit

Permalink
set $baseScript to an empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
Yvand committed Apr 3, 2023
1 parent 66b6548 commit e99c655
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -666,6 +666,10 @@ function Invoke-SPDscCommand
"@
}
else
{
$baseScript = ""
}

$invokeArgs = @{
ScriptBlock = [ScriptBlock]::Create($baseScript + $ScriptBlock.ToString())
Expand Down

0 comments on commit e99c655

Please sign in to comment.