mirror of
https://github.com/jayphelps/git-blame-someone-else.git
synced 2025-05-02 11:35:56 +02:00
Remove White Spaces From String.
This commit is contained in:
parent
07b4f92f3c
commit
58113dad4e
1 changed files with 2 additions and 2 deletions
|
@ -6,8 +6,8 @@ if [ $# -ne 2 ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AUTHOR=$1
|
AUTHOR=$1
|
||||||
AUTHOR_NAME=$(echo $AUTHOR | perl -wlne '/^(.*)\s*<.*>$/ and print $1')
|
AUTHOR_NAME=$(echo $AUTHOR | perl -wlne '/^(.*)\s*<.*>$/ and print $1' | awk '{gsub(/^ +| +$/,"")} {print $0}')
|
||||||
AUTHOR_EMAIL=$(echo $AUTHOR | perl -wlne '/^.*\s*<(.*)>$/ and print $1')
|
AUTHOR_EMAIL=$(echo $AUTHOR | perl -wlne '/^.*\s*<(.*)>$/ and print $1' | awk '{gsub(/^ +| +$/,"")} {print $0}')
|
||||||
COMMIT=$(git rev-parse --short $2)
|
COMMIT=$(git rev-parse --short $2)
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue