fix(cli): clean failed tht installer staging
This commit is contained in:
@@ -122,6 +122,7 @@ try {
|
||||
if ($LASTEXITCODE -ne 0) { throw 'native artifact did not pass its help check' }
|
||||
Replace-InstalledBinary $stagedBinary (Join-Path $installDirectory 'tht.exe')
|
||||
} finally {
|
||||
Remove-Item -LiteralPath $stagedBinary -Force -ErrorAction SilentlyContinue
|
||||
if ($buildOutput) { Remove-Item -LiteralPath $buildOutput -Recurse -Force -ErrorAction SilentlyContinue }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user