aboutsummaryrefslogtreecommitdiff
path: root/run.ps1
diff options
context:
space:
mode:
Diffstat (limited to 'run.ps1')
-rw-r--r--run.ps14
1 files changed, 2 insertions, 2 deletions
diff --git a/run.ps1 b/run.ps1
index 3a7dc09..af8effe 100644
--- a/run.ps1
+++ b/run.ps1
@@ -73,7 +73,7 @@ if (Test-Path ".run/src/bin/*.zig") {
}
if ($args.Count -eq 0) {
- $sorted = $tools.Keys | Sort-Object @{Expression={if ($tools[$_].Type -eq 'ps1') {0} else {1}}}, {$_}
+ $sorted = @($tools.Keys | Sort-Object @{Expression={if ($tools[$_].Type -eq 'ps1') {0} else {1}}}, {$_})
$total = $sorted.Count
$num_w = $total.ToString().Length
@@ -120,7 +120,7 @@ if ($args.Count -eq 0) {
$target_name = $args[0]
if ($target_name -match '^\d+$') {
- $sorted = $tools.Keys | Sort-Object @{Expression={if ($tools[$_].Type -eq 'ps1') {0} else {1}}}, {$_}
+ $sorted = @($tools.Keys | Sort-Object @{Expression={if ($tools[$_].Type -eq 'ps1') {0} else {1}}}, {$_})
$idx = [int]$target_name - 1
if ($idx -ge 0 -and $idx -lt $sorted.Count) {
$target_name = $sorted[$idx]