You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ModuleFast.ps1
+8-6Lines changed: 8 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -43,8 +43,6 @@ if ($PSVersionTable.PSVersion -lt '7.2.0') {
43
43
throw [NotSupportedException]'The ModuleFast Bootstrap script requires PowerShell 7.2 or higher. Specific ModuleFast versions may have more strict requirements.'
44
44
}
45
45
46
-
47
-
48
46
#We need to load the versioning assembly before we load the dependent classes
49
47
#We inline this in order to keep ModuleFast self-contained
50
48
functionImport-NuGetVersioningAssembly {
@@ -101,11 +99,15 @@ if ($UseMain) {
101
99
}
102
100
103
101
if ($installArgs) {
104
-
Write-Debug"Detected we were started with args, running $Entrypoint$($installArgs-join'')"
105
-
&$EntryPoint@installArgs
102
+
try {
103
+
Write-Debug"Detected we were started with args, running $Entrypoint$($installArgs-join'')"
104
+
#TODO: Find a less gross way to do this than Invoke-Expression
0 commit comments