Fix archive parameters
This commit is contained in:
@@ -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)'
|
||||
|
||||
|
||||
@@ -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
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user