1
0
mirror of https://github.com/octoleo/Purse.git synced 2024-12-28 03:45:04 +00:00

Add LANG=C to get tr working.

This commit is contained in:
Dreary Lisper 2022-01-04 18:45:43 +00:00
parent 7074a8bf4c
commit acca8834a4
No known key found for this signature in database
GPG Key ID: 43A275D0EA270A72

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}" - || \