1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-06 17:47:59 +00:00

fixed crash when dst directory of symlink doesn't exist

This commit is contained in:
Michael Weinberger
2018-05-02 15:54:16 +02:00
parent fb496011e8
commit b7c63385bf

View File

@@ -59,6 +59,9 @@ class Installer:
if self.dry:
self.log.dry('would link %s to %s' % (dst, src))
return []
dstDir = os.path.dirname(dst)
if not os.path.exists(dstDir):
os.makedirs(dstDir)
os.symlink(src, dst)
self.log.sub('linked %s to %s' % (dst, src))
# Follows original developer's behavior