mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
it seems on MSWindows MSYS bash, echo n puts a literal \n (not a newline) into the commit message, so lets get more primitive
Docker-DCO-1.1-Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au> (github: SvenDowideit)
This commit is contained in:
parent
b1267cb6ad
commit
43feb84203
1 changed files with 1 additions and 1 deletions
|
@ -4,4 +4,4 @@
|
|||
#
|
||||
GH_USER=$(git config --get github.user)
|
||||
SOB=$(git var GIT_AUTHOR_IDENT | sed -n "s/^\(.*>\).*$/Docker-DCO-1.1-Signed-off-by: \1 \(github: $GH_USER\)/p")
|
||||
grep -qs "^$SOB" "$1" || echo "\n$SOB" >> "$1"
|
||||
grep -qs "^$SOB" "$1" || echo -e "\n$SOB" >> "$1"
|
||||
|
|
Loading…
Add table
Reference in a new issue