Skip to content

Commit

Permalink
Fix powershell wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
avdv committed Dec 5, 2024
1 parent 938d1b4 commit 96e5f90
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tools/bazel_wrapper.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,12 @@ while ($args.Count -gt 0) {
}

# Get the command and remaining arguments
$command = $args[0]
$args = $args[1..$($args.Count - 1)]
if ($args.Count -gt 0) {
$command = $args[0]
$args = $args.Skip(1)
} else {
$args = @() # Or handle the empty case as needed
}

# Execute Bazel with the collected options and arguments
& $Env:BAZEL_REAL @startup_options $command $config @args

0 comments on commit 96e5f90

Please sign in to comment.