mirror of
https://github.com/servo/servo.git
synced 2025-06-21 15:49:04 +01:00
Fix the docs again
This commit is contained in:
parent
954a044570
commit
3fd8e2da27
1 changed files with 2 additions and 1 deletions
|
@ -127,7 +127,8 @@ class MachCommands(CommandBase):
|
|||
|
||||
print("Extracting Rust docs...")
|
||||
temp_dir = path.join(hash_dir, "temp_docs")
|
||||
shutil.rmtree(temp_dir)
|
||||
if path.isdir(temp_dir):
|
||||
shutil.rmtree(temp_dir)
|
||||
extract(tgz_file, temp_dir)
|
||||
shutil.move(path.join(temp_dir, docs_name.split("/")[1], "share", "doc", "rust", "html"), docs_dir)
|
||||
shutil.rmtree(temp_dir)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue