Skip to content

Commit 7abb1d6

Browse files
committed
Trying to fix test for linux/mac
1 parent 9dd225d commit 7abb1d6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Tests/GitHubReleases.tests.ps1

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -721,8 +721,12 @@ try
721721

722722
AfterAll {
723723
$release | Remove-GitHubRelease -Force
724-
Remove-Item -Path $downloadedZipFile -ErrorAction SilentlyContinue
724+
725725
Remove-Item -Path $tempPath -Recurse -ErrorAction SilentlyContinue -Force
726+
if (Get-Variable -Name downloadedZipFile -ErrorAction SilentlyContinue)
727+
{
728+
Remove-Item -Path $downloadedZipFile -ErrorAction SilentlyContinue
729+
}
726730
}
727731

728732
$asset = $release | New-GitHubReleaseAsset -Path $zipFile -ContentType 'application/zip'

0 commit comments

Comments
 (0)