소스 검색

Simplify recursive load

No need to use debugging in this stable feature
Alois Mahdal 10 년 전
부모
커밋
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