mirror of
https://github.com/usnistgov/macos_security.git
synced 2026-02-03 14:03:24 +00:00
refactor[scripts] Fix ios generate mapping
Some checks failed
Spell Check / spellcheck (push) Has been cancelled
Some checks failed
Spell Check / spellcheck (push) Has been cancelled
Fixed os section for ios
This commit is contained in:
@@ -316,7 +316,7 @@ profile:'''.format(other_header,args.os_name,args.os_version)
|
||||
full_baseline = full_baseline + '''
|
||||
- {}'''.format(rule)
|
||||
|
||||
if len(os_section) != 0 and args.os_name == "os":
|
||||
if len(os_section) != 0:
|
||||
full_baseline = full_baseline + '''
|
||||
- section: Operating System
|
||||
rules:'''
|
||||
@@ -380,7 +380,7 @@ profile:'''.format(other_header,args.os_name,args.os_version)
|
||||
|
||||
with open(str(baseline_path) + "/" + other_header.lower().replace(" ","_") + ".yaml",'w') as fw:
|
||||
fw.write(full_baseline)
|
||||
print(other_header.lower().replace(" ","_") + ".yaml baseline file created in build/" + other_header + "/baseline/")
|
||||
print(other_header.lower().replace(" ","_") + ".yaml baseline file created in build/" + other_header.lower() + "/baseline/")
|
||||
|
||||
print("Move all of the folders in rules into the custom folder.")
|
||||
except:
|
||||
|
||||
Reference in New Issue
Block a user