Improved script
This commit is contained in:
parent
2a3d6bb9da
commit
997f4104c6
1 changed files with 1 additions and 0 deletions
|
@ -88,6 +88,7 @@ def apply(path, force):
|
||||||
print(f"Removing {absolutpath}", file=sys.stderr)
|
print(f"Removing {absolutpath}", file=sys.stderr)
|
||||||
shutil.rmtree(absolutpath)
|
shutil.rmtree(absolutpath)
|
||||||
|
|
||||||
|
os.makedirs(os.path.dirname(absolutpath), exist_ok=True)
|
||||||
os.link(dotfilepath, absolutpath)
|
os.link(dotfilepath, absolutpath)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue