We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 677ba85 commit 106d473Copy full SHA for 106d473
build.ps1
@@ -571,10 +571,16 @@ if ($packageType -eq 'msixbundle') {
571
$packageName = "DSC-$productVersion-$architecture.tar"
572
$tarFile = Join-Path $PSScriptRoot 'bin' $packageName
573
tar cvf $tarFile -C $tgzTarget .
574
+ if ($LASTEXITCODE -ne 0) {
575
+ throw "Failed to create tar file"
576
+ }
577
Write-Host -ForegroundColor Green "`nTar file is created at $tarFile"
578
579
$gzFile = "$tarFile.gz"
580
gzip -c $tarFile > $gzFile
581
582
+ throw "Failed to create gz file"
583
584
Write-Host -ForegroundColor Green "`nGz file is created at $gzFile"
585
}
586
0 commit comments