mirror of
https://github.com/octoleo/Purse.git
synced 2025-01-01 13:41:46 +00:00
Style fix.
This commit is contained in:
parent
8769ec11ca
commit
3761aa9645
4
pwd.sh
4
pwd.sh
@ -109,7 +109,7 @@ gen_pass () {
|
|||||||
|
|
||||||
# base64: 4 characters for every 3 bytes
|
# base64: 4 characters for every 3 bytes
|
||||||
${gpg} --gen-random -a 0 "$((${max} * 3/4))" | cut -c -${len}
|
${gpg} --gen-random -a 0 "$((${max} * 3/4))" | cut -c -${len}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
write_pass () {
|
write_pass () {
|
||||||
@ -161,7 +161,7 @@ create_username () {
|
|||||||
if [[ "${rand_pass}" =~ ^([nN][oO]|[nN])$ ]]; then
|
if [[ "${rand_pass}" =~ ^([nN][oO]|[nN])$ ]]; then
|
||||||
get_pass "
|
get_pass "
|
||||||
Enter password for \"${username}\": " ; echo
|
Enter password for \"${username}\": " ; echo
|
||||||
userpass=$password
|
userpass=${password}
|
||||||
else
|
else
|
||||||
userpass=$(gen_pass "$@")
|
userpass=$(gen_pass "$@")
|
||||||
if [[ -z "${4+x}" || ! "${4}" =~ ^([qQ])$ ]] ; then
|
if [[ -z "${4+x}" || ! "${4}" =~ ^([qQ])$ ]] ; then
|
||||||
|
Loading…
Reference in New Issue
Block a user