From 86bf7189ed7e3a0bf4374db5a9e7fb4284a18510 Mon Sep 17 00:00:00 2001 From: Stephen Kirby Date: Tue, 26 Sep 2023 21:49:32 +0000 Subject: [PATCH] added quotes to handle usernames with space --- git-config/run.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/git-config/run.sh b/git-config/run.sh index a0c1d55..6bba880 100644 --- a/git-config/run.sh +++ b/git-config/run.sh @@ -12,12 +12,12 @@ command -v git >/dev/null 2>&1 || { # Set git username and email if missing if [ -z $(git config --get user.email) ]; then printf "git-config: No user.email found, setting to ${CODER_EMAIL}\n" - git config --global user.email ${CODER_EMAIL} + git config --global user.email "${CODER_EMAIL}" fi if [ -z $(git config --get user.name) ]; then printf "git-config: No user.name found, setting to ${CODER_USERNAME}\n" - git config --global user.name ${CODER_USERNAME} + git config --global user.name "${CODER_USERNAME}" fi printf "\n$${BOLD}git-config: using username: $(git config --get user.name)\n"