Skip to content

Commit

Permalink
update script change
Browse files Browse the repository at this point in the history
  • Loading branch information
stax76 committed Nov 17, 2019
1 parent 3844db6 commit 660345d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mpv.net/Update.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ $targetFile = $targetDir + '.7z'

Write-Host 'Download new version' -ForegroundColor Green
curl.exe $args[0] --location --output $targetFile
if (-not $?) { throw "curl error: $LastExitCode" }
if ($LastExitCode) { throw $LastExitCode }

Write-Host 'Unpack new version' -ForegroundColor Green
& ($args[1] + '\7z\7za.exe') x -y $targetFile -o"$targetDir"
if (-not $?) { throw "7zip error: $LastExitCode" }
if ($LastExitCode) { throw $LastExitCode }

Write-Host 'Delete downloaded file' -ForegroundColor Green
Remove-Item $targetFile -Force -Recurse
Expand Down

0 comments on commit 660345d

Please sign in to comment.