SpecterOps / BloodHound

Six Degrees of Domain Admin
https://bloodhoundenterprise.io/
Apache License 2.0
1.07k stars 106 forks source link

BED-4744: Fix `just init clean` #817

Closed superlinkx closed 1 month ago

superlinkx commented 1 month ago

Description

Fixes a blind spot in just init clean where build.config.json becoming a folder could not be reconciled

Motivation and Context

This PR addresses: BED-4744

There was a blind spot in just init clean where docker could create a folder called build.config.json if the file wasn't in place before running a command like just bh-dev. This would cause significant problems, since we want it to be a real config file, not a directory. We're still not sure why the file sometimes goes missing, but in the meantime this creates an easy solution to the dreaded build.config.json: no such file errors

How Has This Been Tested?

Runs fine, no logical changes beyond detecting a directory and making sure it's removed and replaced with a valid file

Types of changes

Checklist: