From 997f4104c6df744650ba5c6ff6f12aeda80c0943 Mon Sep 17 00:00:00 2001 From: Christoph Stahl Date: Wed, 26 Oct 2022 15:46:20 +0200 Subject: [PATCH] Improved script --- .local/bin/dotfiles | 1 + 1 file changed, 1 insertion(+) diff --git a/.local/bin/dotfiles b/.local/bin/dotfiles index 360f8a0..eb12845 100755 --- a/.local/bin/dotfiles +++ b/.local/bin/dotfiles @@ -88,6 +88,7 @@ def apply(path, force): print(f"Removing {absolutpath}", file=sys.stderr) shutil.rmtree(absolutpath) + os.makedirs(os.path.dirname(absolutpath), exist_ok=True) os.link(dotfilepath, absolutpath)