Improved script

This commit is contained in:
Christoph Stahl 2022-10-26 15:46:20 +02:00
parent 2a3d6bb9da
commit 997f4104c6

View file

@ -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)