Skip to content

Commit

Permalink
Read from /dev/tty in install script
Browse files Browse the repository at this point in the history
Otherwise username/password input is written from script on stdin ...
  • Loading branch information
michaelsauter authored Oct 9, 2023
1 parent 827c7fa commit f485b10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deploy/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -174,11 +174,11 @@ installSecret () {
if [ -z "${flagValue}" ]; then
if [ -n "${usernamePrompt}" ]; then
echo "${usernamePrompt}"
read -r authUser
read -r authUser </dev/tty
fi
if [ -n "${passwordPrompt}" ]; then
echo "${passwordPrompt}"
read -rs authPassword
read -rs authPassword </dev/tty
else
authUser=''
authPassword=$(LC_ALL=C tr -dc 'A-Za-z0-9#%*+\-<=>_{|}' </dev/urandom | head -c 32 ; echo)
Expand Down

0 comments on commit f485b10

Please sign in to comment.