Skip to content

Commit

Permalink
Fix deploy-ebpf script (#2757)
Browse files Browse the repository at this point in the history
Fix usage text
Fix duplicate -t options

Signed-off-by: Dave Thaler <[email protected]>
  • Loading branch information
dthaler authored Aug 17, 2023
1 parent d8d88a8 commit 47590e4
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions scripts/deploy-ebpf.ps1.in
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ $source_directory="."
"ebpf-for-windows-{version}.msi")

[System.Collections.ArrayList]$source_script_files=@(
"scripts\common.psm1",
"scripts\install_ebpf.psm1",
"scripts\setup-ebpf.ps1")
"common.psm1",
"install_ebpf.psm1",
"setup-ebpf.ps1")

# The following files are only needed for testing and debugging.
[System.Collections.ArrayList]$built_test_files=@(
Expand Down Expand Up @@ -243,6 +243,7 @@ OPTIONS:
-m, --msi Copies MSI instead of individual files
-l, --local Copies files to the local temp directory instead of into a VM
-t, --test Includes files needed only for testing and debugging
-j, --jittest Includes files needed for JIT testing and debugging
--vm Specifies the VM name, which defaults to "Windows 10 dev environment"

'@
Expand Down Expand Up @@ -279,7 +280,7 @@ OPTIONS:
$copy_redist=$true
break
}
{ @("-t", "--jittest") -contains $_ }
{ @("-j", "--jittest") -contains $_ }
{
$built_files= $built_runtime_files + $built_runtime_jit_files + $built_test_files
$copy_redist=$true
Expand Down

0 comments on commit 47590e4

Please sign in to comment.