mirror of
https://github.com/aljazceru/omakub.git
synced 2026-01-31 09:54:23 +01:00
Ensure we only set if there is some data in these variables
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user