Only show generated passwords, not input ones.

This commit is contained in:
drduh 2015-08-07 14:20:21 -04:00
parent 09adcb0b95
commit 8769ec11ca
1 changed files with 3 additions and 4 deletions

7
pwd.sh
View File

@ -164,11 +164,10 @@ create_username () {
userpass=$password
else
userpass=$(gen_pass "$@")
fi
if [[ -z "${4+x}" || ! "${4}" =~ ^([qQ])$ ]] ; then
echo "
if [[ -z "${4+x}" || ! "${4}" =~ ^([qQ])$ ]] ; then
echo "
Password: ${userpass}"
fi
fi
}