identity: wording
This commit is contained in:
parent
e7e50bc569
commit
7e5bbd1be5
|
@ -73,7 +73,7 @@ function import_identity() {
|
||||||
|
|
||||||
function list_identities() {
|
function list_identities() {
|
||||||
if [ -z "$(ls -A "$identities")" ]; then
|
if [ -z "$(ls -A "$identities")" ]; then
|
||||||
echo "no identities to display";
|
echo "No identities to display";
|
||||||
exit 0;
|
exit 0;
|
||||||
fi
|
fi
|
||||||
local sigkey name email;
|
local sigkey name email;
|
||||||
|
@ -101,7 +101,7 @@ case $1 in
|
||||||
fi
|
fi
|
||||||
import_identity "$2" "$identity";
|
import_identity "$2" "$identity";
|
||||||
|
|
||||||
echo "imported into $filepath :"
|
echo "Imported into $filepath :"
|
||||||
display_identity "$identity";
|
display_identity "$identity";
|
||||||
;;
|
;;
|
||||||
remove)
|
remove)
|
||||||
|
@ -148,7 +148,9 @@ case $1 in
|
||||||
if [ -z "$2" ]; then
|
if [ -z "$2" ]; then
|
||||||
display_parts "current" "$(git config user.name)" "$(git config user.email)" "$(git config user.signingKey)";
|
display_parts "current" "$(git config user.name)" "$(git config user.email)" "$(git config user.signingKey)";
|
||||||
else
|
else
|
||||||
display_identity "$2";
|
get_identity "$2";
|
||||||
|
display_identity "$identity";
|
||||||
|
echo "Located in: $filepath"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
@ -158,12 +160,11 @@ case $1 in
|
||||||
echo "Saved identities can be found here: $identities";
|
echo "Saved identities can be found here: $identities";
|
||||||
echo;
|
echo;
|
||||||
echo "COMMANDS:";
|
echo "COMMANDS:";
|
||||||
echo " import: import an identity from a gpg key";
|
echo " import: Imports an identity from a gpg key";
|
||||||
echo " remove: removes a saved identity";
|
echo " remove: Removes a saved identity";
|
||||||
echo " set: sets the identity of the current git repo";
|
echo " set: Sets the identity of the current git repo";
|
||||||
echo " include: links the global identity file to your current git repo.";
|
echo " show: Show a saved identity or the identity of the current repo";
|
||||||
echo " show: show a saved identity or the identity of the current repo";
|
echo " list: List all saved identities";
|
||||||
echo " list: list all saved identities";
|
|
||||||
exit 1;
|
exit 1;
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Reference in a new issue