.gitcheck: move logic out of main()
Signed-off-by: Leah Rowe <leah@libreboot.org>fsdg20230625
parent
829bc02bf2
commit
ecd7f1d11e
33
.gitcheck
33
.gitcheck
|
@ -13,23 +13,28 @@ main()
|
||||||
clean
|
clean
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
set_placeholder
|
set_placeholders
|
||||||
|
|
||||||
# Check coreboot as well to prevent errors during building
|
|
||||||
if [ -d coreboot ]; then
|
|
||||||
for x in coreboot/*; do
|
|
||||||
if [ ! -d "${x}" ]; then
|
|
||||||
continue
|
|
||||||
fi
|
|
||||||
cd "${x}"
|
|
||||||
set_placeholder
|
|
||||||
cd -
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
set_placeholder()
|
set_placeholders()
|
||||||
|
{
|
||||||
|
set_git_credentials
|
||||||
|
|
||||||
|
# Check coreboot as well to prevent errors during building
|
||||||
|
if [ -d coreboot ]; then
|
||||||
|
for x in coreboot/*; do
|
||||||
|
if [ ! -d "${x}" ]; then
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
cd "${x}"
|
||||||
|
set_git_credentials
|
||||||
|
cd -
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
set_git_credentials()
|
||||||
{
|
{
|
||||||
# Check if username and or email is set.
|
# Check if username and or email is set.
|
||||||
if ! git config user.name || git config user.email ; then
|
if ! git config user.name || git config user.email ; then
|
||||||
|
|
Loading…
Reference in New Issue