Don't delete archive in dryrun mode!

Former-commit-id: 4e9144f95cbce0b9b1377ed1cdfeb40912e60812 [formerly 0d44d222694254eae6f18d9e90a804d3d987cc64 [formerly 387c3c6a28c48c43871a37436f24b3ab24f4cf04 [formerly b0134c4efffce9179814ceb2dd64488ce08f3329]]]
Former-commit-id: ff582409970d8df5b13677c7c7a3a07b7044eba3 [formerly a61b279e32137af05ac925892c31f2ece4454680 [formerly 51803ecc5d4b3bfcb5c7488a86cb3168bf2f7fc4]]
Former-commit-id: 4cd21ac014f327c9335c5a68869f3995327653c1 [formerly 5dc8a3e2a7c23501f188721427e19363350d90ac]
Former-commit-id: 92e664cfd2cdd36ac6b83452ad1b04e7c2afe363
This commit is contained in:
Jaifroid 2022-05-08 14:26:13 +01:00
parent 7a85d2812b
commit 151031b25e

View File

@ -353,7 +353,7 @@ if ($dryrun -or $buildonly -or $release.assets_url -imatch '^https:') {
"`nYou should delete this bundle unless you are very sure that it was built with the correct certificate!"
$deleteBundle = Read-Host "WARNING: There is already an existing UWP release package! Delete (recommended)? [Y/N]"
$deleteBundle = -Not ( $deleteBundle -imatch 'n' )
If ($deleteBundle) {
If ((-Not $dryrun) -and $deleteBundle) {
rm $ReleaseBundle
}
}