From 63d4d6d30266052e5897510e4decb97dcedecb51 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Fri, 4 Jul 2025 16:03:19 -0700 Subject: [PATCH] Only ask if we don't have the identification already --- install/2-identification.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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