dev_scripts: Immitate mkdir -p when creating state dirs

The first time we run the env.py script, we may not have the necessary
dirs under envs. It's best to create them with `parents=True`.
This commit is contained in:
Alex Pyrgiotis 2023-03-02 17:44:32 +02:00
parent 96d8cdef94
commit aaecfdb63e
No known key found for this signature in database
GPG key ID: B6C15EBA0357C9AA

View file

@ -371,7 +371,7 @@ class Env:
print(" ".join(self.runtime_cmd + list(run_cmd)))
return
dist_state.mkdir(exist_ok=True)
dist_state.mkdir(parents=True, exist_ok=True)
(dist_state / "containers").mkdir(exist_ok=True)
(dist_state / ".bash_history").touch(exist_ok=True)
self.runtime_run(*run_cmd)