From 8769ec11ca6b32eeb28f8e107ba4e969c60c0935 Mon Sep 17 00:00:00 2001 From: drduh Date: Fri, 7 Aug 2015 14:20:21 -0400 Subject: [PATCH] Only show generated passwords, not input ones. --- pwd.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pwd.sh b/pwd.sh index 77b969a..10341e2 100755 --- a/pwd.sh +++ b/pwd.sh @@ -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 }