recursively ignore files for packing

This commit is contained in:
David Refoua 2022-10-15 03:41:07 +03:30 committed by GitHub
parent a4c5b9d098
commit 4b8d669d01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,7 +37,7 @@ function Extract-Archive($source, $target) {
}
function Create-Archive($source, $target, $params) {
$command = "7z a -x@`"$source\packignore`" $params $target $source > `$null"
$command = "7z a -xr@`"$source\packignore`" $params $target $source > `$null"
Write-Verbose "Creating Archive from '$source' in '$target' with parameters '$params'"
Invoke-Expression $command
if ($lastexitcode -ne 0) {