Преглед изворни кода

Simplify recursive load

No need to use debugging in this stable feature
Alois Mahdal пре 9 година
родитељ
комит
c996fc2d96
1 измењених фајлова са 1 додато и 6 уклоњено
  1. 1
    6
      src/include/config.sh

+ 1
- 6
src/include/config.sh Прегледај датотеку

@@ -129,12 +129,7 @@ __inigrep__load() {
129 129
     #
130 130
     # Find file(s) candidates and load them (or use *__merge)
131 131
     #
132
-    if test -z "$1";
133
-    then                # guess filename from section head
134
-        local guess="${wntsct%%.*}$FFOO_CONFIG_SUFFIX"
135
-        debug -v guess
136
-        __inigrep__load "$guess"
137
-    fi
132
+    test -n "$1" || __inigrep__load "${wntsct%%.*}$FFOO_CONFIG_SUFFIX"
138 133
     local arg trydir trypath
139 134
     for arg in "$@";
140 135
     do