Skip to content

Commit

Permalink
Merge pull request #733 from opendevstack/fix/install-script-read-dev…
Browse files Browse the repository at this point in the history
…-tty

Read from /dev/tty in install script
  • Loading branch information
michaelsauter authored Oct 9, 2023
2 parents 827c7fa + f485b10 commit b97eb5c
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 b97eb5c

Please sign in to comment.