docs: update

This commit is contained in:
Dylan Araps 2019-02-24 23:28:13 +02:00
parent 82a4fb1bad
commit 6a972b9ca2
2 changed files with 5 additions and 2 deletions

View File

@ -6,3 +6,6 @@ A simple password manager using GPG.
- [x] Add support for not generating passwords. - [x] Add support for not generating passwords.
- [ ] Add support for categories. - [ ] Add support for categories.
- [ ] Man page.
- [ ] Setup automatic linting.
- [ ] Documentation.

4
pash
View File

@ -70,8 +70,8 @@ check_entropy() {
# checks the system's entropy level and shows a warning if # checks the system's entropy level and shows a warning if
# its below its set maximum value. # its below its set maximum value.
k_path=/proc/sys/kernel/random k_path=/proc/sys/kernel/random
entropy=$(<"${k_path}/entropy_avail") entropy=$(< "${k_path}/entropy_avail")
needed=$(<"${k_path}/read_wakeup_threshold") needed=$(< "${k_path}/read_wakeup_threshold")
[[ ${entropy:=0} -lt ${needed:=1} ]] && { [[ ${entropy:=0} -lt ${needed:=1} ]] && {
printf '%s\n' "warn: Not enough entropy to generate a secure password." printf '%s\n' "warn: Not enough entropy to generate a secure password."