We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57a5048 commit 81ab920Copy full SHA for 81ab920
Main.ps1
@@ -110,7 +110,8 @@ foreach ($folder in $folders) {
110
if ($OfficeAppDetection -ieq "automatic") {
111
$app = Get-OfficeApp -FileExtension $fileExtension
112
} elseif ($officeApps.Count -eq 1) {
113
- $app = $officeApps[0]
+ # Note that when an array has only one element, PowerShell will treat it as a single value
114
+ $app = $officeApps
115
} elseif ($officeApps.Count -gt 1) {
116
Write-Host "Multiple Office applications specified. Please specify only one."
117
exit 1
0 commit comments