diff options
-rw-r--r-- | include/lib.sh | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/lib.sh b/include/lib.sh index 1830356e..b8f99674 100644 --- a/include/lib.sh +++ b/include/lib.sh @@ -148,9 +148,7 @@ chkvars() # e.g. coreboot is multi-tree, so 1 singletree() { - for targetfile in "config/${1}/"*/target.cfg; do - [ -e "$targetfile" ] && [ -f "$targetfile" ] && return 1; : - done; : + ( fe_ "exit 1" "config/$1/"*/ -type f -name "target.cfg" ) || return 1 } fe_() |