Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
gtrevi committed Mar 21, 2024
1 parent 1a0d260 commit 358ca0b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scripts/install_ebpf.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -136,12 +136,11 @@ function Stop-eBPFComponents {
$EbpfDrivers.GetEnumerator() | ForEach-Object {
try {
if ($_.Value.IsDriver) {
Write-Log "Stopping $($_.Key) service..." -ForegroundColor Green
Stop-Service $_.Name -ErrorAction Stop 2>&1 | Write-Log
Write-Log "$($_.Key) service stopped." -ForegroundColor Green
Write-Log "$($_.Key) driver stopped." -ForegroundColor Green
}
} catch {
throw "Failed to stop $($_.Key) service: $_"
throw "Failed to stop $($_.Key) driver: $_"
}
}
}
Expand Down

0 comments on commit 358ca0b

Please sign in to comment.