More of the same

This commit is contained in:
jhoneill
2018-11-30 16:18:46 +00:00
parent 54fec69f88
commit 77481f2901

View File

@@ -16,8 +16,8 @@ $ModuleVersion = (Get-Content -Raw .\ImportExcel.psd1) | Invoke-Expression | Fo
if (!$DontCreateZip) {
if ($null -eq $env:BUILD_ARTIFACTSTAGINGDIRECTORY) {$env:BUILD_ARTIFACTSTAGINGDIRECTORY = '.'}
$dest = "ImportExcel-{0}-{1}.zip" -f $ModuleVersion, (Get-Date).ToString("yyyyMMddHHmmss")
Compress-Archive -Path $env:BUILD_ARTIFACTSTAGINGDIRECTORY -DestinationPath .\$dest -Verbose
$dest = Join-Path -Path $env:BUILD_ARTIFACTSTAGINGDIRECTORY -ChildPath ("ImportExcel-{0}-{1}.zip" -f $ModuleVersion, (Get-Date).ToString("yyyyMMddHHmmss"))
Compress-Archive -Path . -DestinationPath .\$dest -Verbose
}
if ($null -eq (Get-Module -ListAvailable pester)) {