File tree 1 file changed +2
-5
lines changed
1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -196,10 +196,7 @@ function Install($Version) {
196
196
}
197
197
198
198
$dest = Get-AbsolutePath ([Environment ]::GetFolderPath(' ApplicationData' ) + " /mips" )
199
- $me = $MyInvocation.Value.MyCommand
200
- if ($me -eq $NULL ) {
201
- $me = $MyInvocation.InvocationName
202
- }
199
+ $me = $MyInvocation.MyCommand.Path
203
200
204
201
$MipsBaseURL = " https://static.grumpycoder.net/pixel/mips/"
205
202
$GdbBaseURL = " https://static.grumpycoder.net/pixel/gdb-multiarch-windows/"
@@ -213,7 +210,7 @@ $ErrorActionPreference = "stop"
213
210
214
211
# If we're invoked from the installer shortcut, we're going to redownload ourselves
215
212
# and install ourselves. That's a bit redundant, but, sure.
216
- if ($me -eq " &" ) {
213
+ if ($MyInvocation .InvocationName -eq " &" ) {
217
214
$me = [System.IO.Path ]::GetTempFileName()
218
215
Invoke-WebRequest - Uri $MyURI - OutFile $me
219
216
$cmd = " self-install"
You can’t perform that action at this time.
0 commit comments