123456789101112131415161718192021222324252627282930313233343536373839 |
- #!/bin/sh
- Set_placeholder(){
-
- if ! git config user.name || git config user.email ; then
- git config user.name || git config user.name 'lbmkplaceholder'
- git config user.email || git config user.email 'placeholder@lbmkplaceholder.com'
- fi
- }
- Clean(){
- if [ "$(git config user.name)" = "lbmkplaceholder" ]; then
- git config --unset user.name
- fi
- if [ "$(git config user.email)" = "placeholder@lbmkplaceholder.com" ]; then
- git config --unset user.email
- fi
- }
- Run(){
- if [ "${1}" = "clean" ]; then
- Clean
- else
- Set_placeholder
-
- if [ -d coreboot ]; then
- cd coreboot
- Set_placeholder
- cd -
- fi
- fi
- }
- Run >/dev/null
|