Explorar el Código

Simplify recursive load

No need to use debugging in this stable feature
Alois Mahdal hace 10 años
padre
commit
c996fc2d96
Se han modificado 1 ficheros con 1 adiciones y 6 borrados
  1. 1
    6
      src/include/config.sh

+ 1
- 6
src/include/config.sh Ver fichero

129
     #
129
     #
130
     # Find file(s) candidates and load them (or use *__merge)
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
     local arg trydir trypath
133
     local arg trydir trypath
139
     for arg in "$@";
134
     for arg in "$@";
140
     do
135
     do