projects
/
webi-installers
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refactor: finish moving ssh-* scripts to own installers
[webi-installers/.git]
/
gpg-pubkey
/
gpg-pubkey.sh
diff --git
a/gpg-pubkey/gpg-pubkey.sh
b/gpg-pubkey/gpg-pubkey.sh
index 3145f6420347b135cd15838f94651d3db96ff2ba..cc0a347a34dd58d35d70be631c3a1aad39047bc0 100755
(executable)
--- a/
gpg-pubkey/gpg-pubkey.sh
+++ b/
gpg-pubkey/gpg-pubkey.sh
@@
-3,9
+3,8
@@
set -e
set -u
function __get_git_email() {
set -u
function __get_git_email() {
- grep 'email\s*=.*@' ~/.gitconfig |
- tr -d '\t ' | head -n 1 |
- cut -d'=' -f2
+ git config --global user.email
+ # grep 'email\s*=.*@' ~/.gitconfig | tr -d '\t ' | head -n 1 | cut -d'=' -f2
}
function __get_pubkey_id() {
}
function __get_pubkey_id() {
@@
-20,12
+19,8
@@
function _create_gpg_key() {
return 1
fi
return 1
fi
- MY_NAME="$(
- grep 'name\s*=' ~/.gitconfig |
- head -n 1 |
- cut -d'=' -f2 |
- sed -e 's/^[\t ]*//'
- )"
+ #grep 'name\s*=' ~/.gitconfig | head -n 1 | cut -d'=' -f2 | sed -e 's/^[\t ]*//'
+ MY_NAME="$(git config --global user.name)"
if [[ -z ${MY_NAME} ]]; then
return 1
fi
if [[ -z ${MY_NAME} ]]; then
return 1
fi