Skip to content

Commit 73bd5ef

Browse files
committed
Fix tests
1 parent d496c68 commit 73bd5ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Shared/CertificateGeneration/CertificateManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ public EnsureCertificateResult EnsureAspNetCoreHttpsDevelopmentCertificate(
314314
// If the user specified a non-existent directory, we don't want to be responsible
315315
// for setting the permissions appropriately, so we'll bail.
316316
var exportDir = Path.GetDirectoryName(path);
317-
if (!Directory.Exists(exportDir))
317+
if (!string.IsNullOrEmpty(exportDir) && !Directory.Exists(exportDir))
318318
{
319319
throw new InvalidOperationException($"The directory '{exportDir}' does not exist.");
320320
}

0 commit comments

Comments
 (0)