Skip to content

Commit

Permalink
Inconsistent -join behavior on some machines
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronFeledy committed Feb 25, 2024
1 parent 1265fcf commit ad94c0b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion setup-lando.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,8 @@ function Get-ResumeCommand {
)
Write-Debug "Building resume command string..."

$arguments = $MyInvocation.BoundParameters.GetEnumerator() | ForEach-Object {
# Strongly-typed array to avoid issues with the -join operator in some cases
[string[]]$arguments = $MyInvocation.BoundParameters.GetEnumerator() | ForEach-Object {
if ($_.Value -is [switch]) {
if ($_.Value) {
"-$($_.Key)"
Expand Down

0 comments on commit ad94c0b

Please sign in to comment.