mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-08 18:59:16 +00:00
add chmod
This commit is contained in:
@@ -156,7 +156,8 @@ class CfgAggregator:
|
||||
if self.debug:
|
||||
self.log.dbg('new dotfile key: {}'.format(key))
|
||||
# add the dotfile
|
||||
self.cfgyaml.add_dotfile(key, src, dst, link, chmod=chmod)
|
||||
if not self.cfgyaml.add_dotfile(key, src, dst, link, chmod=chmod):
|
||||
return None
|
||||
return Dotfile(key, dst, src)
|
||||
|
||||
def new(self, src, dst, link, chmod=None):
|
||||
@@ -172,6 +173,9 @@ class CfgAggregator:
|
||||
if not dotfile:
|
||||
dotfile = self._create_new_dotfile(src, dst, link, chmod=chmod)
|
||||
|
||||
if not dotfile:
|
||||
return False
|
||||
|
||||
key = dotfile.key
|
||||
ret = self.cfgyaml.add_dotfile_to_profile(key, self.profile_key)
|
||||
if ret and self.debug:
|
||||
|
||||
Reference in New Issue
Block a user