Merge pull request #3 from DrearyLisper/master

Add LANG=C to get tr working.
This commit is contained in:
drduh 2022-08-21 11:17:15 -07:00 committed by GitHub
commit 6976cff500
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@ gen_pass () {
write_pass () {
# Write a password and update index file.
fpath=$(tr -dc "[:lower:]" < /dev/urandom | fold -w8 | head -n1)
fpath=$(LC_LANG=C tr -dc "[:lower:]" < /dev/urandom | fold -w8 | head -n1)
spath=${safedir}/${fpath}
printf '%s\n' "${userpass}" | \
encrypt "${spath}" - || \