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