mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-28 18:02:38 +02:00
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:
parent
96d8cdef94
commit
aaecfdb63e
1 changed files with 1 additions and 1 deletions
|
@ -371,7 +371,7 @@ class Env:
|
||||||
print(" ".join(self.runtime_cmd + list(run_cmd)))
|
print(" ".join(self.runtime_cmd + list(run_cmd)))
|
||||||
return
|
return
|
||||||
|
|
||||||
dist_state.mkdir(exist_ok=True)
|
dist_state.mkdir(parents=True, exist_ok=True)
|
||||||
(dist_state / "containers").mkdir(exist_ok=True)
|
(dist_state / "containers").mkdir(exist_ok=True)
|
||||||
(dist_state / ".bash_history").touch(exist_ok=True)
|
(dist_state / ".bash_history").touch(exist_ok=True)
|
||||||
self.runtime_run(*run_cmd)
|
self.runtime_run(*run_cmd)
|
||||||
|
|
Loading…
Reference in a new issue