mirror of
https://github.com/danieldemus/openhab-core.git
synced 2025-01-10 21:31:53 +01:00
a5b86617a6
Signed-off-by: Kai Kreuzer <kai@openhab.org>
12 lines
379 B
Bash
12 lines
379 B
Bash
#!/bin/sh
|
|
# Auto sign all commits to allow them to be used by the Docker project.
|
|
# see https://github.com/openhab/openhab2/blob/master/CONTRIBUTING.md#sign-your-work
|
|
#
|
|
GH_USER=$(git config --get github.user)
|
|
SOB=$(git var GIT_AUTHOR_IDENT | sed -n "s/^\(.*>\).*$/Signed-off-by: \1 \(github: $GH_USER\)/p")
|
|
grep -qs "^$SOB" "$1" || {
|
|
echo
|
|
echo "$SOB"
|
|
} >> "$1"
|
|
|