We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d708c71 commit e0c1fedCopy full SHA for e0c1fed
build_docs.py
@@ -996,10 +996,9 @@ def symlink(
996
if not directory_path.exists():
997
return # No touching link, dest doc not built yet.
998
999
- link_exists = link.exists()
1000
- if not link_exists or readlink(link) != directory:
+ if not link.exists() or readlink(link) != directory:
1001
# Link does not exist or points to the wrong target.
1002
- if link_exists:
+ if link.exists():
1003
link.unlink()
1004
link.symlink_to(directory)
1005
run(["chown", "-h", f":{group}", str(link)])
0 commit comments