Skip to content

Commit

Permalink
fix(install): Force the result to be an array
Browse files Browse the repository at this point in the history
  • Loading branch information
qwertyhjklxyz committed Jul 2, 2024
1 parent ade7aa4 commit 3fbb64c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libexec/scoop-install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,15 @@ if ($specific_versions.length -gt 0) {
$difference = $apps
}

$specific_versions_paths = $specific_versions | ForEach-Object {
$specific_versions_paths = @($specific_versions | ForEach-Object {
$app, $bucket, $version = parse_app $_
if (installed_manifest $app $version) {
warn "'$app' ($version) is already installed.`nUse 'scoop update $app$(if ($global) { " --global" })' to install a new version."
continue
}

generate_user_manifest $app $bucket $version
}
})
$apps = @(($specific_versions_paths + $difference) | Where-Object { $_ } | Sort-Object -Unique)

# remember which were explictly requested so that we can
Expand Down

0 comments on commit 3fbb64c

Please sign in to comment.