docs: update

This commit is contained in:
Dylan Araps 2019-02-25 01:15:42 +02:00
parent b55729abb0
commit 33e8cd7f32
1 changed files with 3 additions and 3 deletions

6
pash
View File

@ -50,6 +50,9 @@ pw_list() {
} }
pw_gen() { pw_gen() {
[[ -r /dev/urandom ]] ||
die "/dev/urandom is not readable."
mapfile -tn "${length:=50}" rand </dev/urandom mapfile -tn "${length:=50}" rand </dev/urandom
[[ $plain ]] && [[ $plain ]] &&
@ -126,9 +129,6 @@ main() {
mapfile -t gpg < <(type -p gpg gpg2) && [[ ! -x ${gpg[0]} ]] && mapfile -t gpg < <(type -p gpg gpg2) && [[ ! -x ${gpg[0]} ]] &&
die "GPG not found." die "GPG not found."
[[ -r /dev/urandom ]] ||
die "/dev/urandom is not readable."
mkdir -p "${pass_dir:=${XDG_DATA_HOME:=$HOME/.local/share}/pash}" || mkdir -p "${pass_dir:=${XDG_DATA_HOME:=$HOME/.local/share}/pash}" ||
die "Couldn't create password directory." die "Couldn't create password directory."