read from /dev/tty direct

This commit is contained in:
AJ ONeal 2018-06-14 20:45:51 +00:00
parent d700b51494
commit c8d974884b
1 changed files with 3 additions and 2 deletions

View File

@ -68,6 +68,7 @@ my_app="telebit-relay"
my_bin="telebit-relay.js" my_bin="telebit-relay.js"
my_name="Telebit Relay" my_name="Telebit Relay"
my_repo="telebit-relay.js" my_repo="telebit-relay.js"
exec 3<>/dev/tty
if [ -z "${my_email}" ]; then if [ -z "${my_email}" ]; then
echo "" echo ""
@ -77,7 +78,7 @@ if [ -z "${my_email}" ]; then
echo "To accept the Terms of Service for Telebit, Greenlock and Let's Encrypt," echo "To accept the Terms of Service for Telebit, Greenlock and Let's Encrypt,"
echo "please enter your email." echo "please enter your email."
echo "" echo ""
read -p "email: " my_email read -u 3 -p "email: " my_email
echo "" echo ""
# UX - just want a smooth transition # UX - just want a smooth transition
sleep 0.5 sleep 0.5
@ -86,7 +87,7 @@ fi
if [ -z "${my_servername}" ]; then if [ -z "${my_servername}" ]; then
echo "What is the domain of this server (for admin interface)?" echo "What is the domain of this server (for admin interface)?"
echo "" echo ""
read -p "domain (ex: telebit-relay.example.com): " my_servername read -u 3 -p "domain (ex: telebit-relay.example.com): " my_servername
echo "" echo ""
# UX - just want a smooth transition # UX - just want a smooth transition
sleep 0.5 sleep 0.5