refactor[scripts] Fix ios generate mapping
Some checks failed
Spell Check / spellcheck (push) Has been cancelled

Fixed os section for ios
This commit is contained in:
Bob Gendler
2026-01-30 16:31:13 -05:00
parent 01886e004a
commit e16f1a87ad

View File

@@ -316,11 +316,11 @@ 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:'''
os_section.sort()
os_section.sort()
for rule in os_section:
full_baseline = full_baseline + '''
- {}'''.format(rule)
@@ -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: