1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-04 19:44:45 +00:00

force symlink re-creation when moving from template to non-template and vice-versa

This commit is contained in:
deadc0de6
2018-09-24 22:34:30 +02:00
parent 0d4ce18e49
commit d86567a861

View File

@@ -61,7 +61,8 @@ class Installer:
self.log.dbg('dotfile is a template')
self.log.dbg('install to {} and symlink'.format(self.workdir))
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 []
src = tmp
return self._link(src, dst)