diff options
author | Jan-Simon Möller <jsmoeller@linuxfoundation.org> | 2017-04-24 22:53:37 +0200 |
---|---|---|
committer | Jan-Simon Möller <jsmoeller@linuxfoundation.org> | 2017-04-24 22:53:37 +0200 |
commit | afc542ea4779eca0450a58daa0d59b91523ef05d (patch) | |
tree | 111633147475329af0eb15e8462f7552b5beba38 /jjb | |
parent | 38084d2596f2dd1163116d5842e2e66276ef2857 (diff) |
Only add if file does not exist already
Change-Id: I6c55d1ab9c148fa71f2fa4f8973684032c77f4d8
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
Diffstat (limited to 'jjb')
-rw-r--r-- | jjb/common/include-agl-header.sh | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/jjb/common/include-agl-header.sh b/jjb/common/include-agl-header.sh index cab53f30..51865ea9 100644 --- a/jjb/common/include-agl-header.sh +++ b/jjb/common/include-agl-header.sh @@ -140,12 +140,11 @@ set | grep ^MACHINE || true set -x -#rm -rf ~/.gitconfi* || true +rm -rf ~/.gitconfi* || true -git config --help - -git config --global --replace-all user.email "jenkins-dontreply@build.automotivelinux.org" -git config --global --replace-all user.name "jenkins-dontreply@build.automotivelinux.org" +if test ! -f ~/.gitconfig ; then + git config --global --add user.email "jenkins-dontreply@build.automotivelinux.org" --add user.name "jenkins-dontreply@build.automotivelinux.org" +fi #git config --global user.email "jenkins-dontreply@build.automotivelinux.org" #sync |