dotfm

My dotfile manager
git clone git://src.gearsix.net/dotfm
Log | Files | Refs | Atom | README | LICENSE

commit 052571b19d79bd6e56942499a93f1864a08684ee
parent cc07189b1648c45ff24926cf39134d2c7e3ed2fe
Author: gearsix <gearsix@tuta.io>
Date:   Mon,  6 Sep 2021 11:07:42 +0000

bugfix if blank line in INSTALLED_FILE

Diffstat:
Msrc/dotfm.py | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/dotfm.py b/src/dotfm.py @@ -119,7 +119,11 @@ def isdotfile(dotfile_list, query): def clearduplicates(dotfile_list, id_index=0): for i, d in enumerate(dotfile_list): + if len(d) == 0: + continue for j, dd in enumerate(dotfile_list): + if len(dd) == 0: + continue if j > i and dd[id_index] == d[id_index]: dotfile_list.remove(d) break