1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-06 16:37:57 +00:00

fix empty profile or empty profile dotfiles for #221

This commit is contained in:
deadc0de6
2020-04-14 17:57:22 +02:00
parent 054ba21019
commit 902a4036cb
2 changed files with 4 additions and 1 deletions

View File

@@ -398,6 +398,9 @@ class CfgYaml:
return profiles
new = {}
for k, v in profiles.items():
if not v:
# no dotfiles
continue
# add dotfiles entry if not present
if self.key_profile_dotfiles not in v:
v[self.key_profile_dotfiles] = []