mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-10 05:09:17 +00:00
fix bug
This commit is contained in:
@@ -102,7 +102,10 @@ def importer(opts, conf, paths):
|
|||||||
key = 'd_%s' % (key)
|
key = 'd_%s' % (key)
|
||||||
else:
|
else:
|
||||||
key = 'f_%s' % (key)
|
key = 'f_%s' % (key)
|
||||||
src = dst.lstrip(home).lstrip('.')
|
src = dst
|
||||||
|
if dst.startswith(home):
|
||||||
|
src = dst[len(home):]
|
||||||
|
src = src.lstrip('.' + os.sep)
|
||||||
dotfile = Dotfile(key, dst, src)
|
dotfile = Dotfile(key, dst, src)
|
||||||
srcf = os.path.join(CUR, opts['dotpath'], src)
|
srcf = os.path.join(CUR, opts['dotpath'], src)
|
||||||
if os.path.exists(srcf):
|
if os.path.exists(srcf):
|
||||||
|
|||||||
Reference in New Issue
Block a user