mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-16 13:26:11 +00:00
force symlink re-creation when moving from template to non-template and vice-versa
This commit is contained in:
@@ -61,7 +61,8 @@ class Installer:
|
|||||||
self.log.dbg('dotfile is a template')
|
self.log.dbg('dotfile is a template')
|
||||||
self.log.dbg('install to {} and symlink'.format(self.workdir))
|
self.log.dbg('install to {} and symlink'.format(self.workdir))
|
||||||
tmp = self._pivot_path(dst, self.workdir, striphome=True)
|
tmp = self._pivot_path(dst, self.workdir, striphome=True)
|
||||||
if not self.install(templater, src, tmp):
|
i = self.install(templater, src, tmp)
|
||||||
|
if not i and not os.path.exists(tmp):
|
||||||
return []
|
return []
|
||||||
src = tmp
|
src = tmp
|
||||||
return self._link(src, dst)
|
return self._link(src, dst)
|
||||||
|
|||||||
Reference in New Issue
Block a user