Skip to content

Commit

Permalink
Fix "'args' is an automatic variable" warning
Browse files Browse the repository at this point in the history
  • Loading branch information
mlocati committed May 5, 2020
1 parent fe5e6d3 commit c39524d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions PhpManager/public/Install-Composer.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,13 @@
$installer = Get-FileFromUrlOrCache -Url $installerUrl -CachedFileName 'composer-installer.php'
}
$tempPhar = [System.IO.Path]::GetTempFileName();
$args = @()
$args += $installer
$args += '--install-dir=' + (Split-Path -Path $tempPhar -Parent)
$args += '--filename=' + (Split-Path -Path $tempPhar -Leaf)
$args += '2>&1'
$arguments = @()
$arguments += $installer
$arguments += '--install-dir=' + (Split-Path -Path $tempPhar -Parent)
$arguments += '--filename=' + (Split-Path -Path $tempPhar -Leaf)
$arguments += '2>&1'
Write-Verbose "Launching Composer installer"
$installerResult = & $phpVersion.ExecutablePath $args
$installerResult = & $phpVersion.ExecutablePath $arguments
if ($LASTEXITCODE -ne 0) {
throw $installerResult
}
Expand Down

0 comments on commit c39524d

Please sign in to comment.