mirror of
https://github.com/commaai/agnos-builder.git
synced 2026-04-06 06:43:53 +08:00
make sure persistent pstore dir exists
This commit is contained in:
@@ -8,6 +8,8 @@ ROOT = Path("/cache/debug/")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
os.makedirs(ROOT, exist_ok=True)
|
||||
|
||||
boots = sorted(list(ROOT.iterdir()), key=lambda p: int(p.stem, 16), reverse=True)
|
||||
|
||||
# limit to 100 boots
|
||||
|
||||
Reference in New Issue
Block a user