Skip to content

Commit 6b4664a

Browse files
committed
missing mkdir_p
1 parent f3d72f9 commit 6b4664a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tools/get.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ def unpack(p: pathlib.Path, destination: pathlib.Path):
8686

8787
# ref. https://docs.arduino.cc/arduino-cli/package_index_json-specification/
8888
def get_tool(tool: dict, *, dist_dir: pathlib.Path, quiet: bool, dry_run: bool):
89+
if not dist_dir.exists():
90+
dist_dir.mkdir(parents=True, exist_ok=True)
91+
8992
archive_name = tool["archiveFileName"]
9093
local_path = dist_dir / archive_name
9194

0 commit comments

Comments
 (0)