From 704487fd3618a455009cea3a8f8cfad1b1ad891c Mon Sep 17 00:00:00 2001 From: zhangchf Date: Fri, 15 Mar 2024 20:09:15 +0800 Subject: [PATCH] test --- .github/workflows/container.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/container.yml b/.github/workflows/container.yml index 5ac32026..52cdc71d 100644 --- a/.github/workflows/container.yml +++ b/.github/workflows/container.yml @@ -89,7 +89,7 @@ jobs: $targetDirectory = "C:\Program Files\Microsoft Visual Studio\2022\Community\" # 循环判断目录数量是否大于等于 14 - while ((Get-ChildItem -Path $targetDirectory -Directory).Count -lt 14) { + while (!(Test-Path $targetDirectory) -or ((Get-ChildItem -Path $targetDirectory -Directory).Count -lt 14)) { Write-Host "目录数量小于14个,等待1分钟..." Start-Sleep -Seconds 60 }