Only ask for the identification if it has not already been provided

This commit is contained in:
David Heinemeier Hansson 2025-08-15 09:28:24 +02:00
parent 75a8b1fc83
commit 5a809db2a8

View File

@ -1,4 +1,7 @@
#!/bin/bash
export OMARCHY_USER_NAME=$(gum input --placeholder "Enter full name" --prompt "Name> ")
export OMARCHY_USER_EMAIL=$(gum input --placeholder "Enter email address" --prompt "Email> ")
[ -z "$OMARCHY_USER_NAME" ] &&
export OMARCHY_USER_NAME=$(gum input --placeholder "Enter full name" --prompt "Name> ")
[ -z "$OMARCHY_USER_EMAIL" ] &&
export OMARCHY_USER_EMAIL=$(gum input --placeholder "Enter email address" --prompt "Email> ")