Skip to content
This repository was archived by the owner on Mar 21, 2025. It is now read-only.

Commit f485b10

Browse files
author
Michael Sauter
authored
Read from /dev/tty in install script
Otherwise username/password input is written from script on stdin ...
1 parent 827c7fa commit f485b10

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

deploy/install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,11 +174,11 @@ installSecret () {
174174
if [ -z "${flagValue}" ]; then
175175
if [ -n "${usernamePrompt}" ]; then
176176
echo "${usernamePrompt}"
177-
read -r authUser
177+
read -r authUser </dev/tty
178178
fi
179179
if [ -n "${passwordPrompt}" ]; then
180180
echo "${passwordPrompt}"
181-
read -rs authPassword
181+
read -rs authPassword </dev/tty
182182
else
183183
authUser=''
184184
authPassword=$(LC_ALL=C tr -dc 'A-Za-z0-9#%*+\-<=>_{|}' </dev/urandom | head -c 32 ; echo)

0 commit comments

Comments
 (0)