diff --git a/install/2-identification.sh b/install/2-identification.sh index c135b29..9678e22 100644 --- a/install/2-identification.sh +++ b/install/2-identification.sh @@ -2,6 +2,8 @@ yay -S --noconfirm --needed gum # Configure identification -echo -e "\nEnter identification for git and autocomplete..." -export OMARCHY_USER_NAME=$(gum input --placeholder "Enter full name" --prompt "Name> ") -export OMARCHY_USER_EMAIL=$(gum input --placeholder "Enter email address" --prompt "Email> ") +if [[ -z "${OMARCHY_USER_NAME//[[:space:]]/}${OMARCHY_USER_EMAIL//[[:space:]]/}" ]]; then + echo -e "\nEnter identification for git and autocomplete..." + export OMARCHY_USER_NAME=$(gum input --placeholder "Enter full name" --prompt "Name> ") + export OMARCHY_USER_EMAIL=$(gum input --placeholder "Enter email address" --prompt "Email> ") +fi