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

fix dry on link_children

This commit is contained in:
deadc0de6
2020-11-18 15:07:37 +01:00
parent 48756a295e
commit ef6d78ed45

View File

@@ -261,8 +261,11 @@ class Installer:
"""
parent = os.path.join(self.base, src)
if not os.path.lexists(dst):
self.log.sub('creating directory "{}"'.format(dst))
os.makedirs(dst)
if self.dry:
self.log.dry('would create directory "{}"'.format(dst))
else:
self.log.sub('creating directory "{}"'.format(dst))
os.makedirs(dst)
if os.path.isfile(dst):
msg = ''.join([