Skip to content

Commit

Permalink
Further simplify symlink removal (#224)
Browse files Browse the repository at this point in the history
Co-authored-by: Ezio Melotti <[email protected]>
  • Loading branch information
AA-Turner and ezio-melotti authored Oct 28, 2024
1 parent 841689c commit 36f8c1e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions build_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -998,8 +998,7 @@ def symlink(

if not link.exists() or readlink(link) != directory:
# Link does not exist or points to the wrong target.
if link.exists():
link.unlink()
link.unlink(missing_ok=True)
link.symlink_to(directory)
run(["chown", "-h", f":{group}", str(link)])
if not skip_cache_invalidation:
Expand Down

0 comments on commit 36f8c1e

Please sign in to comment.