File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -40,13 +40,10 @@ __todo_date(){
4040 date_time_dict[time_format]='%X'
4141 # parse configuration file to get date and time formats from there
4242 local conf_file="${XDG_CONFIG_DIR:-${HOME}/.config}/todoman/todoman.conf"
43- rm -f ~/zdbg
4443 if [[ -f "$conf_file" ]]; then
4544 while read line; do
46- echo reading line "$line" >> ~/zdbg
4745 for key in date_format dt_separator time_format; do
4846 if [[ "$line" =~ "^\s*$key\s*=\s*" ]]; then
49- echo matched key "$key" >> ~/zdbg
5047 # Note the above check's regex is different then this one. That's
5148 # because '=~' type matching and pattern replacement use different
5249 # syntaxes. We need to strip the actual value from the whole line with
@@ -56,7 +53,6 @@ __todo_date(){
5653 line="${line// /}"
5754 # And now, we remove the date_format= prefix
5855 line="${line#$key=}"
59- echo parsed value is "$line" >> ~/zdbg
6056 date_time_dict[$key]="$line"
6157 fi
6258 done
You can’t perform that action at this time.
0 commit comments