Fix archive parameters

This commit is contained in:
Maxim Lobanov
2020-04-23 18:06:12 +03:00
parent 4335ada9f6
commit 59d4db4007
3 changed files with 7 additions and 3 deletions

View File

@@ -34,6 +34,8 @@ jobs:
inputs:
targetType: inline
script: |
$pwd
Get-ChildItem
if ("$(Platform)" -match 'win32') { powershell ./setup.ps1 } else { sh ./setup.sh }
workingDirectory: '$(Build.BinariesDirectory)'

View File

@@ -25,6 +25,8 @@ function Create-TarArchive {
$CompressionTypeArgument = If ([string]::IsNullOrWhiteSpace($CompressionType)) { "" } else { "--${CompressionType}" }
Write-Debug "tar -c $CompressionTypeArgument -f $ArchivePath $SourceFolder"
tar -c $CompressionTypeArgument -f $ArchivePath $SourceFolder
Push-Location $SourceFolder
Write-Debug "tar -c $CompressionTypeArgument -f $ArchivePath ."
tar -c $CompressionTypeArgument -f $ArchivePath .
Pop-Location
}

View File

@@ -29,6 +29,6 @@ function Create-SevenZipArchive {
Push-Location $SourceFolder
Write-Debug "7z a $ArchiveTypeArgument $CompressionLevelArgument $ArchivePath @$SourceFolder"
7z a $ArchiveTypeArgument $CompressionLevelArgument $ArchivePath @$SourceFolder
7z a $ArchiveTypeArgument $CompressionLevelArgument $ArchivePath $SourceFolder
Pop-Location
}