build: add the ability to set enforce all profiles.
Do not do that!!! It forces ALL profiles in enforce mode.
This commit is contained in:
parent
7c24dde028
commit
cad27a3f78
4 changed files with 45 additions and 6 deletions
|
|
@ -161,7 +161,7 @@ func SetFlags() error {
|
|||
}
|
||||
|
||||
// Remove all flags definition, then set manifest' flags
|
||||
res := regFlagComplain.ReplaceAllLiteralString(string(content), "")
|
||||
res := regFlags.ReplaceAllLiteralString(string(content), "")
|
||||
res = regProfileHeader.ReplaceAllLiteralString(res, flags)
|
||||
if err := file.WriteFile([]byte(res)); err != nil {
|
||||
return err
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue