mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-09 22:49:15 +00:00
handle empty config for #130
This commit is contained in:
@@ -243,7 +243,7 @@ class Cfg:
|
|||||||
def _parse(self, profile=None):
|
def _parse(self, profile=None):
|
||||||
"""parse config file"""
|
"""parse config file"""
|
||||||
# parse the settings
|
# parse the settings
|
||||||
self.lnk_settings = self.content[self.key_settings]
|
self.lnk_settings = self.content[self.key_settings] or {}
|
||||||
if not self._complete_settings():
|
if not self._complete_settings():
|
||||||
return False
|
return False
|
||||||
|
|
||||||
@@ -382,7 +382,7 @@ class Cfg:
|
|||||||
|
|
||||||
dotfiles = self.content[self.key_dotfiles]
|
dotfiles = self.content[self.key_dotfiles]
|
||||||
noempty_default = self.lnk_settings[self.key_ignoreempty]
|
noempty_default = self.lnk_settings[self.key_ignoreempty]
|
||||||
dotpath = self.content['config']['dotpath']
|
dotpath = self.lnk_settings[self.key_dotpath]
|
||||||
for k, v in dotfiles.items():
|
for k, v in dotfiles.items():
|
||||||
src = v[self.key_dotfiles_src]
|
src = v[self.key_dotfiles_src]
|
||||||
if dotpath not in src:
|
if dotpath not in src:
|
||||||
|
|||||||
Reference in New Issue
Block a user