microsoft / StigRepo

Automated PowerSTIG Repository for Active Directory environments
38 stars 7 forks source link

Update-StigRepo generates redundant Manual Check folders during StigData backup #43

Open JakeDean3631 opened 3 years ago

JakeDean3631 commented 3 years ago

Bug/Issue Description Provide a clear and concise description the bug/issue

Reproduction Steps Steps to reproduce the behavior:

  1. Run Update-StigRepo with an existing StigRepo instance
  2. Observe the StigData folder and see that folders containing manual check files are generated at the root of the stigdata folder when they should only be placed in the StigData\Manual Checks folder.

Expected Behavior Manual Check files should only be placed in the StigData\manual checks folder

Recommended fix action Modify the "Update-StigRepo" function within "Source\Module\RepoFunctions.ps1" to generate/place Manual Check files in the correct location

Existing Workarounds N/A

Screenshots

image

Additional context N/A

TurnerMarshall commented 3 years ago

Line 246 of RepoFunctions.ps1 copies the files in there. image