Make symlink and copy src relative to basedir, not to dotfiles
This commit is contained in:
parent
43a2f631fd
commit
8dd1b98567
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue