From 9dd7c38c09f7dc7ca1a465d819e8c918066597c1 Mon Sep 17 00:00:00 2001 From: Jacob Kiers Date: Mon, 24 Jul 2017 13:13:35 +0200 Subject: [PATCH] Escape git name and email This allows using spaces in the git username. Signed-off-by: Jacob Kiers --- entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 9e24fcf..8910230 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -17,8 +17,8 @@ if [[ ! -f /backup/.ssh/id_rsa ]] ; then git config --global credential.helper '!aws codecommit credential-helper $@' git config --global credential.UseHttpPath true fi -git config --global user.name $GIT_USERNAME -git config --global user.email $GIT_EMAIL +git config --global user.name "$GIT_USERNAME" +git config --global user.email "$GIT_EMAIL" test -d /backup/git/ || git clone --depth 1 $GIT_REPO /backup/git --branch $GIT_BRANCH || git clone $GIT_REPO /backup/git cd /backup/git/