-
Notifications
You must be signed in to change notification settings - Fork 42
Open
Description
When implementing the current powershell deployment script, I came across a logic error in the detection. It appears there are two different checks for an existing installation.
check 1: Line 161 - checks for HuntressAgent.exe
check 2: Line 1114 - checks for more than 1 file in the huntress directory
My deployment was for a new install with an existing folder containing an old log file, so that's how I found this. I would think it would be better to combine the folder contents test within the test at 161 vs doing another completely separate test at 1114. Then, change the logic at 1114 to use the results of $isHuntressInstalled
Metadata
Metadata
Assignees
Labels
No labels