Fix gendocs ci

This commit is contained in:
halx99 2023-09-03 07:54:49 +08:00
parent 8a9455a4ab
commit c9b3ba5c3e
1 changed files with 2 additions and 2 deletions

View File

@ -15,8 +15,8 @@ function mkdirs([string]$path) {
}
function download_file($url, $out) {
if($b1k.isfile($out)) { return }
$b1k.println("Downloading $url to $out ...")
if(Test-Path $out -PathType Leaf) { return }
Write-Host "Downloading $url to $out ..."
if ($pwsh_ver -ge '7.0') {
curl -L $url -o $out
}