Fix gendocs ci

This commit is contained in:
halx99 2023-09-03 09:59:38 +08:00
parent 692688accf
commit d5cb9d4d1e
1 changed files with 2 additions and 1 deletions

View File

@ -26,10 +26,11 @@ function download_file($url, $out) {
} }
function download_zip_expand($url, $out, $dest = $null) { function download_zip_expand($url, $out, $dest = $null) {
download_file $url $out
if (!$dest) { if (!$dest) {
$dest = $(Split-Path $out -Parent) $dest = $(Split-Path $out -Parent)
} }
mkdirs $dest
download_file $url $out
Expand-Archive -Path $out -DestinationPath $dest Expand-Archive -Path $out -DestinationPath $dest
} }