Make symlink and copy src relative to basedir, not to dotfiles

This commit is contained in:
flyingscorpio@arch-desktop 2020-09-11 12:21:15 +02:00
parent 43a2f631fd
commit 8dd1b98567

View file

@ -181,7 +181,7 @@ class Installer:
ui.info_2("Skipping", pretty_dest)
return
p_src: Path = self.base_dir / "dotfiles" / src
p_src: Path = self.base_dir / src
ui.info_2("Copy", p_src, "->", self.pretty_path(p_src))
p_src.copy(p_dest)
@ -321,7 +321,7 @@ class Installer:
if p_src.startswith("/"):
src_full = p_src
else:
src_full = self.base_dir / "dotfiles" / p_src
src_full = self.base_dir / p_src
src_full.symlink(p_dest)