summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2024-06-09 15:23:50 +0100
committerLeah Rowe <leah@libreboot.org>2024-06-09 15:23:50 +0100
commit86eb566b131b4e71dce0a911a0d97890338fbe9f (patch)
tree4e867ba86283ef384f43be4bb18668758630d6fc
parentfbcdf33f93149700a69bb588fdb7e9b4ea632037 (diff)
lib.sh: fix regression
i was being a bit too clever about some optimisations revert this change. otherwise, nothing will download or build Signed-off-by: Leah Rowe <leah@libreboot.org>
-rwxr-xr-xinclude/lib.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/lib.sh b/include/lib.sh
index cf076388..b3a76879 100755
--- a/include/lib.sh
+++ b/include/lib.sh
@@ -223,7 +223,8 @@ e()
singletree()
{
for targetfile in "config/${1}/"*/target.cfg; do
- [ -e "$targetfile" ] && [ -f "$targetfile" ] && return 1
+ [ -e "$targetfile" ] || continue
+ [ -f "$targetfile" ] && return 1
done
}