Skip to content

Commit 72530eb

Browse files
committed
check for, and if empty, set Git user information on startup to prevent service errors.
1 parent 52c1af6 commit 72530eb

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

ds.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,20 @@ fi
1515

1616
# Set the user information so Git won't complain
1717
# (when not set, git exits with non-zero, raising service exception)
18-
user_name=`git config --global user.name`
18+
user_name=`git config user.name`
1919
if [ -z "$user_name" ]; then
2020
if [ -z "$GIT_USER_NAME" ]; then
2121
GIT_USER_NAME="pyterrabacktyl"
2222
fi
2323
git config --global user.name "$GIT_USER_NAME"
2424
fi
2525

26-
user_email=`git config --global user.email`
26+
user_email=`git config user.email`
2727
if [ -z "$user_email" ]; then
2828
if [ -z "$GIT_USER_EMAIL" ]; then
2929
GIT_USER_EMAIL="pyterrabacktyl@devdull.lol" # Default to script author's domain.
3030
fi
31-
git config --global user.name "$GIT_USER_EMAIL"
31+
git config --global user.email "$GIT_USER_EMAIL"
3232
fi
3333

3434

0 commit comments

Comments
 (0)