Selaa lähdekoodia

Simplify recursive load

No need to use debugging in this stable feature
Alois Mahdal 10 vuotta sitten
vanhempi
commit
c996fc2d96
1 muutettua tiedostoa jossa 1 lisäystä ja 6 poistoa
  1. 1
    6
      src/include/config.sh

+ 1
- 6
src/include/config.sh Näytä tiedosto

@@ -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