Skip to content

Commit

Permalink
refactor: Remove temporary directory after installation
Browse files Browse the repository at this point in the history
The `Install-Snort` function in `snort.ps1` is updated to remove the temporary directory used during the installation process. This change ensures that the temporary files are properly cleaned up after the installation is complete.

Refactor `Install-Snort` function in `snort.ps1` to remove temporary directory
  • Loading branch information
bengo237 committed Sep 5, 2024
1 parent aa14353 commit 9dcf64e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/windows/snort.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ function Install-Snort {
} else {
Write-Host "Failed to download snort.conf file."
}

#delete temp directory
Remove-Item -Path $tempDir -Recurse -Force

Write-Host "Installation and configuration completed!"
}
Expand Down

0 comments on commit 9dcf64e

Please sign in to comment.