We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 19dc447 commit 6a774b7Copy full SHA for 6a774b7
1 file changed
ModuleFast.ps1
@@ -100,14 +100,12 @@ if ($UseMain) {
100
101
if ($installArgs) {
102
try {
103
- Write-Debug "Detected we were started with args, running $Entrypoint $($installArgs -join ' ')"
+ [string]$bootstrapScript = "$EntryPoint $($installArgs -join ' ')"
104
+ Write-Debug "Detected we were started with args, running $bootstrapScript"
105
#TODO: Find a less gross way to do this than Invoke-Expression
- Invoke-Expression "$EntryPoint $($installArgs -join ' ')"
106
+ Invoke-Expression $bootstrapScript
107
} finally {
108
#Remove the bootstrap module if args were specified, otherwise persist it in memory
109
Remove-Module $bootstrapModule
110
}
-
111
112
113
0 commit comments