summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-09-15 10:37:06 +0100
committerLeah Rowe <leah@libreboot.org>2026-09-15 10:37:06 +0100
commita65d804f1e7400b09b4b5358d218658adc2937e6 (patch)
treed6deb5bbce8baea220b21a88461948342132c8e1 /include
parentcf079dbd1775bb6270ee1cd8d36ce6c8aaa5a17c (diff)
add dir check
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include')
-rw-r--r--include/env/init.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/env/init.sh b/include/env/init.sh
index 74ad8166..aa069cfa 100644
--- a/include/env/init.sh
+++ b/include/env/init.sh
@@ -357,7 +357,8 @@ git_init()
done
git_init_src .
- fx_ git_init_src x_ find src -maxdepth 1 -mindepth 1 -type d
+ [ -d "src" ] && \
+ fx_ git_init_src x_ find src -maxdepth 1 -mindepth 1 -type d; :
}
git_init_src()