summaryrefslogtreecommitdiff
path: root/include/lib.sh
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2024-06-09 10:55:33 +0100
committerLeah Rowe <leah@libreboot.org>2024-06-09 10:55:33 +0100
commit26df6e7ab29cc745e40beae867310089fe0a7cf3 (patch)
tree00ecbf6fe0eab62714ffb1b5018db71475a461d9 /include/lib.sh
parent9cdf419295a248e8853ca7c9cc98df90990aca6c (diff)
lib.sh: simplify singletree()
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include/lib.sh')
-rwxr-xr-xinclude/lib.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/lib.sh b/include/lib.sh
index 9d66ea8d..fa15bd6a 100755
--- a/include/lib.sh
+++ b/include/lib.sh
@@ -223,8 +223,7 @@ e()
singletree()
{
for targetfile in "config/${1}/"*/target.cfg; do
- [ ! -e "$targetfile" ] && continue
- [ -f "$targetfile" ] && return 1
+ [ -e "$targetfile" ] && [ -f "$targetfile" ] && return 1
done
}