mirror of
https://github.com/jayphelps/git-blame-someone-else.git
synced 2025-05-01 11:06:21 +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
|
||||
|
||||
AUTHOR=$1
|
||||
AUTHOR_NAME=$(echo $AUTHOR | perl -wlne '/^(.*)\s*<.*>$/ and print $1')
|
||||
AUTHOR_EMAIL=$(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' | awk '{gsub(/^ +| +$/,"")} {print $0}')
|
||||
COMMIT=$(git rev-parse --short $2)
|
||||
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue