Fix input reading for NetBird domain in getting-started-with-zitadel.sh (#1064)

This commit is contained in:
Maycon Santos 2023-08-08 20:10:14 +02:00 committed by GitHub
parent cdf57275b7
commit a9b9b3fa0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -395,7 +395,7 @@ check_nb_domain() {
read_nb_domain() {
READ_NETBIRD_DOMAIN=""
echo -n "Enter the domain you want to use for NetBird (e.g. netbird.my-domain.com): " > /dev/stderr
read -r READ_NETBIRD_DOMAIN
read -r READ_NETBIRD_DOMAIN < /dev/tty
if ! check_nb_domain "$READ_NETBIRD_DOMAIN"; then
read_nb_domain
fi