Skip to content

Commit

Permalink
Use read -s (noecho) and -p message to ask for passphrase
Browse files Browse the repository at this point in the history
  • Loading branch information
specing committed Jun 1, 2013
1 parent 497da2d commit 3cadc30
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lxc-gentoo
Original file line number Diff line number Diff line change
Expand Up @@ -444,12 +444,7 @@ configure() {
fi

# Type guest root password
echo -n "Type guest root password (enter for none):"
stty -echo
read GUESTROOTPASS
echo ""
stty echo
echo ""
read -s -p "Type guest root password (enter for none): " GUESTROOTPASS

if [[ -z "${STAGE3_TARBALL}" ]]; then
# choose the architecture
Expand Down

0 comments on commit 3cadc30

Please sign in to comment.