mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-04 14:31:46 +00:00
fix bug
This commit is contained in:
@@ -102,7 +102,10 @@ def importer(opts, conf, paths):
|
||||
key = 'd_%s' % (key)
|
||||
else:
|
||||
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)
|
||||
srcf = os.path.join(CUR, opts['dotpath'], src)
|
||||
if os.path.exists(srcf):
|
||||
|
||||
Reference in New Issue
Block a user