.gitcheck: continue if no .git (don't break)

the user may have re-downloaded a coreboot tree,
in a release. this is supported. therefore, some
may have .git, and some will not

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2023-08-24 16:37:40 +01:00
parent be7a5b0ca2
commit 50c395df59
2 changed files with 6 additions and 5 deletions
+2 -2
View File
@@ -29,7 +29,7 @@ set_placeholders()
[ -d coreboot ] || return 0
for x in coreboot/*; do
[ -d "${x}" ] || continue
[ -e "${x}/.git" ] || break
[ -e "${x}/.git" ] || continue
(
cd "${x}"
set_git_credentials
@@ -55,7 +55,7 @@ clean()
[ -d coreboot ] || return 0
for x in coreboot/*; do
[ -d "${x}" ] || continue
[ -e "${x}/.git" ] || break
[ -e "${x}/.git" ] || continue
(
cd "${x}"
unset_placeholders