Skip to content

Commit 34576ae

Browse files
authored
fix(m365): check Env:REPORT_SAS for null
1 parent 78b37ba commit 34576ae

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

m365/image/run_container.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ Foreach ($tenantConfig in $(Get-ChildItem 'input\')) {
9191

9292
Write-Output " Starting Upload"
9393
$OutPath = "$($Env:REPORT_OUTPUT)/$($ResultsFile.Name)"
94-
if ($Env:REPORT_SAS -ne "") {
94+
if ($Env:REPORT_SAS -ne $null -and $Env:REPORT_SAS -ne "") {
9595
$OutPath += "?$($Env:REPORT_SAS)"
9696
}
9797
.\azcopy copy $ResultsFile.FullName $OutPath --output-level essential

0 commit comments

Comments
 (0)