diff options
Diffstat (limited to '.gitcheck')
-rwxr-xr-x | .gitcheck | 33 |
1 files changed, 19 insertions, 14 deletions
@@ -13,23 +13,28 @@ main() clean fi else - set_placeholder - - # 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 + set_placeholders + fi +} + +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_placeholder() +set_git_credentials() { # Check if username and or email is set. if ! git config user.name || git config user.email ; then |