Ensure we only set if there is some data in these variables

This commit is contained in:
David Heinemeier Hansson
2025-05-18 20:59:41 +02:00
parent 7986012164
commit 44b8f9d067

View File

@@ -6,5 +6,10 @@ git config --global alias.st status
git config --global pull.rebase true
# Set identification from install inputs
git config --global user.name "$OMAKUB_USER_NAME"
git config --global user.email "$OMAKUB_USER_EMAIL"
if [[ -n "${OMAKUB_USER_NAME//[[:space:]]/}" ]]; then
git config --global user.name "$OMAKUB_USER_NAME"
fi
if [[ -n "${OMAKUB_USER_EMAIL//[[:space:]]/}" ]]; then
git config --global user.email "$OMAKUB_USER_EMAIL"
fi